summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 4559c77b..051c33c0 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -53,6 +53,11 @@ static gboolean add_plugin(void *handle, struct bluetooth_plugin_desc *desc)
if (desc->init == NULL)
return FALSE;
+ if (g_str_equal(desc->version, VERSION) == FALSE) {
+ DBG("version mismatch for %s", desc->name);
+ return FALSE;
+ }
+
plugin = g_try_new0(struct bluetooth_plugin, 1);
if (plugin == NULL)
return FALSE;