diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/plugin.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 89b46f0..416c647 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -125,10 +125,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref) result->name = get_name(); if (!g_module_symbol(result->module, "init_plugin", (gpointer *)&result->init)) - { - printf("Err plugin init sym\n"); - /* TODO */ - } + result->init = NULL; /* @@ -156,8 +153,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref) result->get_action = get_action; - /* - if (result->action & (PGA_DISASSEMBLE | PGA_CODE_PROCESS)) + if (g_plugin_module_get_action(result) & (PGA_DISASSEMBLE | PGA_DISASS_PROCESS | PGA_CODE_PROCESS)) { if (!g_module_symbol(result->module, "execute_action_on_binary", (gpointer *)&result->exec_on_bin)) { @@ -168,14 +164,13 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref) } - */ - if (!result->init(result, ref)) + if (result->init != NULL && !result->init(result, ref)) { log_variadic_message(LMT_ERROR, _("Initialization of plugin '%s' failed !"), filename); goto bad_plugin; |