summaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluetooth/hal-bt-data.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-11 17:23:48 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commitad0caaef716aef6a79c4b86b86916a6dcd3e395a (patch)
tree712fb2b051695cce59af00baba2169bccff28f39 /plugins/lib/bluetooth/hal-bt-data.h
parent106db2e301d8688c0b1353bf7388897b3e91232d (diff)
Prevent Hal-Bt plugin from crashing 4A
Prevent Hal-Bt plugin from crashing 4A when 'Bluetooth-Manager' api is not found. Change-Id: Id8ecc3efcc36825abbb4a2bb8cf553327c45d173 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth/hal-bt-data.h')
-rw-r--r--plugins/lib/bluetooth/hal-bt-data.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/lib/bluetooth/hal-bt-data.h b/plugins/lib/bluetooth/hal-bt-data.h
index eb5eb26..500654b 100644
--- a/plugins/lib/bluetooth/hal-bt-data.h
+++ b/plugins/lib/bluetooth/hal-bt-data.h
@@ -41,10 +41,12 @@ struct HalBtDeviceData {
// Structure to store hal bluetooth plugin data
struct HalBtPluginData {
- unsigned int btStreamEnabled;
+ unsigned int halBtPluginEnabled;
struct SpecificHalData *currentHalData;
+ unsigned int btStreamEnabled;
+
struct HalBtDeviceData *selectedBtDevice;
struct HalBtDeviceData *first;
};