diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugin-def.h | 2 | ||||
-rw-r--r-- | src/plugins/plugin.c | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index 83b2c9a..e5d06c3 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -31,8 +31,6 @@ - - /* ------------------------ IDENTIFICATION DE COMPATIBILITES ------------------------ */ diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index cd59ee1..f12c1f6 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -209,15 +209,13 @@ GPluginModule *g_plugin_module_new(const gchar *filename) current = CURRENT_ABI_VERSION; - if (0 /* check_version() */) + if (current != result->interface->abi_version) { - log_variadic_message(LMT_ERROR, - _("Bad version... '%s'"), + _("ABI mismatch detected! Plugin '%s' rejected"), filename); goto bad_plugin; - } /* Localisation des différents points d'entrée déclarés */ |