✨ feat(plugin manager api): packet plugin register with stage
This commit is contained in:
@@ -141,10 +141,17 @@ struct plugin_manager_runtime
|
||||
int pub_session_msg_cnt;
|
||||
}__attribute__((aligned(sizeof(void*))));
|
||||
|
||||
enum packet_stage
|
||||
{
|
||||
PACKET_STAGE_INPUT=0,
|
||||
PACKET_STAGE_OUTPUT,
|
||||
PACKET_STAGE_MAX
|
||||
};
|
||||
|
||||
struct registered_packet_plugin_schema
|
||||
{
|
||||
char ip_protocol;
|
||||
plugin_on_packet_func *on_packet;
|
||||
plugin_on_packet_func *on_packet[PACKET_STAGE_MAX];
|
||||
void *plugin_env;
|
||||
UT_array *registed_packet_mq_subscriber_info;
|
||||
}__attribute__((aligned(sizeof(void*))));
|
||||
|
||||
Reference in New Issue
Block a user