Plugin management support pm_session_dettach_me and pm_session_dettach_others
Add test cases for pm_session_dettach_me and pm_session_dettach_others
This commit is contained in:
@@ -59,12 +59,11 @@ int main(int argc, char ** argv)
|
||||
struct plugin_manager *plug_mgr = plugin_manager_create();
|
||||
|
||||
// register build-in plugin
|
||||
plugin_manager_register(plug_mgr, "HTTP", SESSION_EVENT_ALL, http_decoder);
|
||||
plugin_manager_register(plug_mgr, "HTTP", SESSION_EVENT_ALL, http_decoder, http_error_cb);
|
||||
|
||||
// load external plugins
|
||||
char prefix_path[] = "/op/tsg/stellar/";
|
||||
char file_path[] = "./plugs/plugins.inf";
|
||||
plugin_manager_load(plug_mgr, prefix_path, file_path);
|
||||
plugin_manager_load(plug_mgr, file_path);
|
||||
|
||||
//packet_io_init
|
||||
struct packet_io_device *dev = packet_io_init(1, "stellar", "cap0");
|
||||
|
||||
Reference in New Issue
Block a user