feat(plugin manager api): packet plugin register with stage

This commit is contained in:
yangwei
2024-09-04 14:44:30 +08:00
parent 1bdfc4506c
commit 9ee8df58a7
5 changed files with 32 additions and 18 deletions

View File

@@ -57,7 +57,7 @@ struct packet;
typedef void plugin_on_packet_func(struct packet *pkt, unsigned char ip_protocol, void *plugin_env);
//return packet plugin_id
int stellar_packet_plugin_register(struct stellar *st, unsigned char ip_protocol, plugin_on_packet_func on_packet, void *plugin_env);
int stellar_packet_plugin_register(struct stellar *st, unsigned char ip_protocol, plugin_on_packet_func on_packet_input, plugin_on_packet_func on_packet_output, void *plugin_env);
//return polling work result, 0: no work, 1: work