Plugin Management support C plugin
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sdk/include/session.h"
|
||||
|
||||
#define MAX_PLUGIN_NUM 256
|
||||
|
||||
struct per_session_event_cbs;
|
||||
struct plugin_manager;
|
||||
|
||||
struct plugin_manager *plugin_manager_create();
|
||||
@@ -13,8 +9,8 @@ void plugin_manager_destory(struct plugin_manager *plug_mgr);
|
||||
|
||||
// return 0: success
|
||||
// return -1: error
|
||||
int plugin_manager_load(struct plugin_manager *plug_mgr, const char *plugin_file);
|
||||
int plugin_manager_load(struct plugin_manager *plug_mgr, const char *prefix, const char *file);
|
||||
void plugin_manager_unload(struct plugin_manager *plug_mgr);
|
||||
|
||||
int plugin_manager_register(struct plugin_manager *plug_mgr, const char *session_type, fn_session_event_callback *callback);
|
||||
int plugin_manager_register(struct plugin_manager *plug_mgr, const char *session_name, enum session_event_type event, fn_session_event_callback *callback);
|
||||
void plugin_manager_dispatch(struct plugin_manager *plug_mgr, struct stellar_event *event);
|
||||
Reference in New Issue
Block a user