[PATCH 2/6] android/hal-bluetooth: Implement set_os_callouts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 android/hal-bluetooth.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index defaef1..50e3f07 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -30,6 +30,7 @@
 #include "hal-utils.h"
 
 static const bt_callbacks_t *bt_hal_cbacks = NULL;
+static const bt_os_callouts_t *bt_os_callouts = NULL;
 
 #define enum_prop_to_hal(prop, hal_prop, type) do { \
 	static type e; \
@@ -981,9 +982,14 @@ static int get_connection_state(const bt_bdaddr_t *bd_addr)
 
 static int set_os_callouts(bt_os_callouts_t *callouts)
 {
-	DBG("callouts: %p", callouts);
+	DBG("");
 
-	/* TODO: implement */
+	/* TODO investigate how expose callouts for daemon */
+
+	if (!interface_ready())
+		return BT_STATUS_NOT_READY;
+
+	bt_os_callouts = callouts;
 
 	return BT_STATUS_SUCCESS;
 }
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux