diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/plugin-def.h | 5 | ||||
-rw-r--r-- | src/plugins/plugin.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index 1b47bd6..adbabd4 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -41,14 +41,11 @@ typedef enum _PluginAction -struct _GPluginModule; - - /* Fournit une indication sur le type d'opération(s) menée(s). */ typedef PluginAction (* get_plugin_action_fc) (void); /* Exécute une action définie sur un binaire chargé. */ -typedef bool (* execute_action_on_binary_fc) (struct _GPluginModule *, GOpenidaBinary *, PluginAction); +typedef bool (* execute_action_on_binary_fc) (GOpenidaBinary *, PluginAction); diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index ed4c39d..42bef63 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -107,7 +107,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref) result->module = g_module_open(filename, G_MODULE_BIND_LAZY); -#if 0 +#if 1 if (!g_module_symbol(result->module, "get_plugin_action", (gpointer *)&__get_action)) { printf("Err plugin get_action sym\n"); @@ -144,6 +144,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref) if (!result->init(ref)) printf("Err loading pg\n"); + else printf("Loaded '%s' : ok (%p)\n", filename, result); return result; @@ -185,6 +186,6 @@ PluginAction g_plugin_module_get_action(const GPluginModule *plugin) bool g_plugin_module_execute_action_on_binary(const GPluginModule *plugin, GOpenidaBinary *binary, PluginAction action) { - return plugin->exec_on_bin(plugin, binary, action); + return plugin->exec_on_bin(binary, action); } |