diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-10-04 18:36:48 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-10-04 18:36:48 (GMT) |
commit | 105394bcc19b3565c6b77d38625d8813596d0c1b (patch) | |
tree | a4ee17a5ecfa3dfa9327f5ec78da78cd2bd65a59 /src/plugins/pglist.c | |
parent | 208abfe4182c0dafc230e0377b3efcc6c24be0f9 (diff) |
Updated and improved the plugin system.
Diffstat (limited to 'src/plugins/pglist.c')
-rw-r--r-- | src/plugins/pglist.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index 54c8784..2010cda 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -306,6 +306,22 @@ void load_remaning_plugins(void) } while (changed); + for (i = 0; i < _pg_count; i++) + { + flags = g_plugin_module_get_flags(_pg_list[i]); + + if (flags & PSF_UNKNOW_DEP) + log_variadic_message(LMT_ERROR, + _("There is (at least) one unknown dependency in the plugin '%s'"), + g_plugin_module_get_filename(_pg_list[i])); + + else if (flags & PSF_DEP_LOOP) + log_variadic_message(LMT_ERROR, + _("There is a dependency loop in the plugin '%s'"), + g_plugin_module_get_filename(_pg_list[i])); + + } + /* Effectue les chargements possibles */ for (i = 0; i < _pg_count; i++) |