OSDN Git Service

android/hal: Unify HALs callbacks pointers definition
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 22 Oct 2013 13:24:55 +0000 (15:24 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 22 Oct 2013 13:51:07 +0000 (16:51 +0300)
Those are not suppose to be modified or used outside of each HAL.

android/hal-av.c
android/hal-bluetooth.c
android/hal-hidhost.c
android/hal-pan.c

index b1c5276..0fe1b74 100644 (file)
@@ -21,7 +21,7 @@
 #include "hal-log.h"
 #include "hal.h"
 
-const btav_callbacks_t *cbs = NULL;
+static const btav_callbacks_t *cbs = NULL;
 
 static bool interface_ready(void)
 {
index 5bad409..2c8a902 100644 (file)
@@ -25,7 +25,7 @@
 #include "hal-msg.h"
 #include "hal-ipc.h"
 
-bt_callbacks_t *bt_hal_cbacks = NULL;
+static const bt_callbacks_t *bt_hal_cbacks = NULL;
 
 static void handle_adapter_state_changed(void *buf)
 {
index e1a3e97..f941f2f 100644 (file)
@@ -24,7 +24,7 @@
 #include "hal-msg.h"
 #include "hal-ipc.h"
 
-bthh_callbacks_t *bt_hh_cbacks;
+static const bthh_callbacks_t *bt_hh_cbacks;
 
 static bool interface_ready(void)
 {
index f05a93b..4ca7cbb 100644 (file)
@@ -21,7 +21,7 @@
 #include "hal-log.h"
 #include "hal.h"
 
-const btpan_callbacks_t *bt_pan_cbacks = NULL;
+static const btpan_callbacks_t *bt_pan_cbacks = NULL;
 
 static bool interface_ready(void)
 {