Refactored plugin management interface

This commit is contained in:
luwenpeng
2022-07-27 15:51:07 +08:00
parent dd54381cb0
commit 61e3c264f3
11 changed files with 168 additions and 100 deletions

View File

@@ -1,13 +1,16 @@
[PLUGINFO]
INIT_FUNC=custom_plugin_init
DESTROY_FUNC=custom_plugin_destroy
LIBARY_PATH=./plugins/custom_event_plugin/custom_event_plugin.so
EXIT_FUNC=custom_plugin_exit
LIBRARY_PATH=./plugins/custom_event_plugin/custom_event_plugin.so
# Support SESSION_EVENT_TYPE
# OPENING,RAWPKT,ORDPKT,META,CLOSING,ALL
[SESSION_TYPE.TCP]
SESSION_EVENT_TYPE=ALL
SESSION_EVENT_CALLBACK=custom_plugin_entry
[SESSION_TYPE.CUSTOM_A]
SESSION_EVENT_TYPE=ALL
SESSION_EVENT_TYPE=OPENING,ORDPKT,CLOSING
SESSION_EVENT_CALLBACK=custom_event_plugin_entry