summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-17 15:36:49 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-19 10:26:38 +0200
commit56fe087dfc68f56d84ac41ca390c8a0dc7438e2d (patch)
tree40092a7a702b24fb18e2bd93db81b6644c2b0336 /src
parentb5519a1fede5ea4f480c788789f957d9af80efc6 (diff)
Make a call to BtIO API so its symbols got resolved before plugin have loaded.
Diffstat (limited to 'src')
-rw-r--r--src/plugin.c5
1 files changed, 5 insertions, 0 deletions
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",