🦄 refactor(plugin manager): update interface definition
This commit is contained in:
@@ -27,8 +27,8 @@ int custom_event_plugin_entry(const struct stellar_session *s, int what, struct
|
||||
|
||||
int custom_plugin_init()
|
||||
{
|
||||
plugin_session_event_register("TCP", custom_plugin_entry, nullptr);
|
||||
plugin_session_event_register("CUSTOM_A", custom_event_plugin_entry, nullptr);
|
||||
//plugin_manager_event_register("TCP", custom_plugin_entry, nullptr);
|
||||
//plugin_manager_event_register("CUSTOM_A", custom_event_plugin_entry, nullptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ int http_event_plugin_entry(const struct stellar_session *s, int what, struct st
|
||||
|
||||
int http_event_plugin_init()
|
||||
{
|
||||
plugin_session_event_register("HTTP", http_event_plugin_entry, nullptr);
|
||||
//plugin_manager_event_register("HTTP", http_event_plugin_entry, nullptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "session.h"
|
||||
#include <time.h>
|
||||
|
||||
int plugin_session_event_register(const char *session_name,
|
||||
fn_session_event_callback call_back,
|
||||
const struct timeval *timeout);
|
||||
|
||||
void plugin_session_event_delete(struct stellar_event *ev,
|
||||
void plugin_remove_from_session_event(struct stellar_event *ev,
|
||||
struct stellar_session *s);
|
||||
@@ -41,4 +41,4 @@ void session_manager_trigger_event(struct stellar_session *s,
|
||||
struct stellar_session_event_extras *info);
|
||||
|
||||
struct stellar_session *session_manager_session_derive(const struct stellar_session *this_session,
|
||||
const char *new_session_name);
|
||||
const char *new_session_type_name);
|
||||
Reference in New Issue
Block a user