plugin_manager adapt session_manager API and rewrite plugin_manger gtest
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
[PLUGINFO]
|
||||
INIT_FUNC="custom_event_plugin_init"
|
||||
EXIT_FUNC="custom_event_plugin_exit"
|
||||
LIBRARY_PATH="./plugins/custom_event_plugin/custom_event_plugin.so"
|
||||
|
||||
# Support SESSION_EVENT_TYPE: "SESSION_EVENT_OPENING", "SESSION_EVENT_RAWPKT", "SESSION_EVENT_ORDPKT", "SESSION_EVENT_META", "SESSION_EVENT_CLOSING", "SESSION_EVENT_ALL"
|
||||
|
||||
[SESSION_NAME.TCP]
|
||||
SESSION_EVENT_TYPE=["SESSION_EVENT_ALL"]
|
||||
SESSION_EVENT_CALLBACK="custom_event_plugin_tcp_entry"
|
||||
|
||||
[SESSION_NAME.CUSTOM]
|
||||
SESSION_EVENT_TYPE=["SESSION_EVENT_OPENING","SESSION_EVENT_ORDPKT","SESSION_EVENT_CLOSING"]
|
||||
SESSION_EVENT_CALLBACK="custom_event_plugin_custom_entry"
|
||||
@@ -1,10 +0,0 @@
|
||||
[PLUGINFO]
|
||||
INIT_FUNC="http_event_plugin_init"
|
||||
EXIT_FUNC="http_event_plugin_exit"
|
||||
LIBRARY_PATH="./plugins/http_event_plugin/http_event_plugin.so"
|
||||
|
||||
# Support SESSION_EVENT_TYPE: "SESSION_EVENT_OPENING", "SESSION_EVENT_RAWPKT", "SESSION_EVENT_ORDPKT", "SESSION_EVENT_META", "SESSION_EVENT_CLOSING", "SESSION_EVENT_ALL"
|
||||
|
||||
[SESSION_NAME.HTTP]
|
||||
SESSION_EVENT_TYPE=["SESSION_EVENT_ALL"]
|
||||
SESSION_EVENT_CALLBACK="http_event_plugin_entry"
|
||||
10
sdk/example/plugins/http_plugin.inf
Normal file
10
sdk/example/plugins/http_plugin.inf
Normal file
@@ -0,0 +1,10 @@
|
||||
[PLUGINFO]
|
||||
INIT_FUNC="http_plugin_init"
|
||||
EXIT_FUNC="http_plugin_exit"
|
||||
LIBRARY_PATH="./plugins/http_plugin/http_plugin.so"
|
||||
|
||||
# Support SESSION_STATE: "SESSION_STATE_OPENING", "SESSION_STATE_ACTIVE", "SESSION_STATE_CLOSING", "SESSION_STATE_ALL"
|
||||
|
||||
[SESSION_NAME.HTTP]
|
||||
SESSION_STATE=["SESSION_STATE_ALL"]
|
||||
SESSION_ENTRY_CALLBACK="http_plugin_entry"
|
||||
@@ -1,4 +0,0 @@
|
||||
# Relative path, relative to the installation path of stellar
|
||||
|
||||
./plugins/http_event_plugin/http_event_plugin.inf
|
||||
./plugins/custom_event_plugin/custom_event_plugin.inf
|
||||
Reference in New Issue
Block a user