🦄 refactor(plugin manager): update interface definition
This commit is contained in:
@@ -28,17 +28,27 @@ struct plugin_manager
|
||||
struct session_event_callback_map *session_ev_cb_map;
|
||||
};
|
||||
|
||||
struct plugin_manager g_plug_mgr;
|
||||
#endif
|
||||
|
||||
int plugin_session_event_register(const char *session_name,
|
||||
struct plugin_manager_handle *plugin_manager_init()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int plugin_manager_load(const char *plugin_conf_path)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int plugin_manager_event_register(struct plugin_manager_handle *h,
|
||||
const char *session_type_name,
|
||||
fn_session_event_callback call_back,
|
||||
const struct timeval *timeout)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void plugin_manager_dispatch(struct stellar_event *event)
|
||||
void plugin_manager_dispatch(struct plugin_manager_handle *h, struct stellar_event *event)
|
||||
{
|
||||
#if 0
|
||||
struct session *s = container_of(event, struct session, cur_ev);
|
||||
|
||||
Reference in New Issue
Block a user