summaryrefslogtreecommitdiff
path: root/src/plugins/pglist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pglist.c')
-rw-r--r--src/plugins/pglist.c28
1 files changed, 1 insertions, 27 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);