From 9595e45d2e9c94c026cdb89c9eaef0e82fc0dce5 Mon Sep 17 00:00:00 2001 From: XINHUANG LI Date: Fri, 7 Sep 2018 17:11:25 +0800 Subject: [PATCH 06/19] bluetoothd: not load battery plugin --- src/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugin.c b/src/plugin.c index 39310a7..0176ae1 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -67,6 +67,11 @@ static gboolean add_plugin(void *handle, struct bluetooth_plugin_desc *desc) return FALSE; } + if (strcmp(desc->name, "battery") == 0) { + DBG("not load %s plugin", desc->name); + return FALSE; + } + DBG("Loading %s plugin", desc->name); plugin = g_try_new0(struct bluetooth_plugin, 1); -- 2.20.1