diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/pglist.c | 28 | ||||
-rw-r--r-- | src/plugins/plugin.c | 2 |
2 files changed, 1 insertions, 29 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index 6dc2d9c..3e107b8 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -344,22 +344,10 @@ static void browse_directory_for_plugins(const char *dir) else { - - printf("// Candidate // %s\n", filename); - has_alt = check_for_plugin_versions(dir, namelist[k]->d_name, &is_nox, &is_ui); - printf(" -> nox=%d ui=%d -> alt? %d\n", is_nox, is_ui, has_alt); - - if ((nox_mode && is_nox) || (!nox_mode && ((is_nox && !has_alt) || is_ui))) { - - - printf(" ---> load!\n"); - - - module = g_module_open(filename, G_MODULE_BIND_LAZY); if (module == NULL) { @@ -369,32 +357,18 @@ static void browse_directory_for_plugins(const char *dir) goto next_file; } - - printf(" (main) module=%p '%s'\n", module, g_module_name(module)); - + get_instance = NULL; if (!g_module_symbol(module, "get_chrysalide_plugin_instance", (gpointer *)&get_instance)) - { log_variadic_message(LMT_ERROR, _("No '%s' entry in plugin candidate '%s'"), "<sym>", filename); - - - } - - if (get_instance == NULL) plugin = NULL; else plugin = get_instance(module); - - - printf(" ===> plugin: %p\n", plugin); - - - if (plugin != NULL) { register_plugin(plugin); diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index b7f85d5..dfdf3ed 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -196,8 +196,6 @@ static void g_plugin_module_finalize(GPluginModule *plugin) { size_t i; /* Boucle de parcours */ - printf("[!!!] Finalizing plugin %s\n", plugin->name); - if (plugin->name != NULL) free(plugin->name); |