diff options
| author | 2025-09-13 23:18:10 +0330 | |
|---|---|---|
| committer | 2025-09-13 23:18:10 +0330 | |
| commit | c74e4db86e5c0cd267688ddce47029f46c0d3ccb (patch) | |
| tree | 0b5d980dab8e2365645171a43557fafeaefda26c /src/plugin.c | |
| parent | feature impls + directories (diff) | |
plugin file support
Diffstat (limited to 'src/plugin.c')
| -rw-r--r-- | src/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index cfee5d4..514db04 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -117,6 +117,8 @@ void load_plugins(const char *plugin_path) { return; } + init_plugin_func = dlsym(plugin_handle, "MP_init_plugin"); + if (init_plugin_func) { init_plugin_func(); log(_info, "loaded %s\n", plugin_path); @@ -128,7 +130,6 @@ void load_plugins(const char *plugin_path) { return; } - init_plugin_func = dlsym(plugin_handle, "MP_init_plugin"); modify_server_stats_func = dlsym(plugin_handle, "MP_modify_server_stats"); decide_neighbor_registry_func = dlsym(plugin_handle, "MP_decide_neighbor_registry"); decide_packet_propogation_func = dlsym(plugin_handle, "MP_decide_packet_propogation"); |
