From 56fe087dfc68f56d84ac41ca390c8a0dc7438e2d Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 17 Feb 2009 15:36:49 -0300 Subject: Make a call to BtIO API so its symbols got resolved before plugin have loaded. --- src/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/plugin.c b/src/plugin.c index 32ccf2d9..4559c77b 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -37,6 +37,7 @@ #include "plugin.h" #include "logging.h" #include "hcid.h" +#include "btio.h" static GSList *plugins = NULL; @@ -99,6 +100,10 @@ gboolean plugin_init(GKeyFile *config) if (strlen(PLUGINDIR) == 0) return FALSE; + /* Make a call to BtIO API so its symbols got resolved before the + * plugins are loaded. */ + bt_io_error_quark(); + if (config) disabled = g_key_file_get_string_list(config, "General", "DisablePlugins", -- cgit