summaryrefslogtreecommitdiff
path: root/plugins/pychrysa
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-09-30 11:22:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-09-30 11:22:46 (GMT)
commitdb702d1243e6fec187137d48cecb89de17fefc3b (patch)
tree13776b4b75377951d9ebf9a57078ae1aed659cba /plugins/pychrysa
parent6ba73df8224dc2a88fe5f37a331960936758036e (diff)
Handled dependencies when loading plugins.
Diffstat (limited to 'plugins/pychrysa')
-rw-r--r--plugins/pychrysa/plugin.c2
-rw-r--r--plugins/pychrysa/pychrysa.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysa/plugin.c b/plugins/pychrysa/plugin.c
index 7d44f10..fad0084 100644
--- a/plugins/pychrysa/plugin.c
+++ b/plugins/pychrysa/plugin.c
@@ -345,8 +345,10 @@ GPluginModule *g_python_plugin_new(const char *modname, const char *filename)
/* Conclusion */
+ /*
if (!g_plugin_module_load(G_PLUGIN_MODULE(result)))
goto gppn_bad_plugin;
+ */
return G_PLUGIN_MODULE(result);
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c
index e9efc54..4d32ee1 100644
--- a/plugins/pychrysa/pychrysa.c
+++ b/plugins/pychrysa/pychrysa.c
@@ -37,6 +37,7 @@
#include <common/environment.h>
#include <common/extstr.h>
#include <core/core.h>
+#include <plugins/pglist.h>
#include <plugins/plugin-def.h>
#include <plugins/plugin-int.h>
@@ -478,7 +479,7 @@ static bool load_python_plugins(GPluginModule *plugin)
g_plugin_module_log_variadic_message(plugin, LMT_PROCESS,
_("Loaded the Python plugin found in the '<b>%s</b>' directory"),
filename);
- add_plugin_to_main_list(pyplugin);
+ _register_plugin(pyplugin);
}
free(filename);