hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 9595e45d2e9c94c026cdb89c9eaef0e82fc0dce5 Mon Sep 17 00:00:00 2001
From: XINHUANG LI <buluess.li@rock-chips.com>
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