summaryrefslogtreecommitdiff
path: root/android/hal-ipc.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-10-22 14:46:13 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-22 16:17:26 +0300
commit5258fa30a4ee03819f33435f7ddc25e02ce3dd2a (patch)
tree76867da0cb1bb907c24b9b6ceadd64242d3aaa04 /android/hal-ipc.c
parent5f4a871d84f15d8365225da182f9b21a434b0dc5 (diff)
downloadbluez-5258fa30a4ee03819f33435f7ddc25e02ce3dd2a.tar.gz
android/hal: Add initial support for handling adapter notifications
Only adapter state callback is handled for now.
Diffstat (limited to 'android/hal-ipc.c')
-rw-r--r--android/hal-ipc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index f1a9d188d..16f2bd375 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -27,6 +27,7 @@
#include <cutils/properties.h>
+#include "hal.h"
#include "hal-msg.h"
#include "hal-log.h"
#include "hal-ipc.h"
@@ -44,6 +45,9 @@ static pthread_t notif_th = 0;
static void notification_dispatch(struct hal_msg_hdr *msg, int fd)
{
switch (msg->service_id) {
+ case HAL_SERVICE_ID_BLUETOOTH:
+ bt_notify_adapter(msg->opcode, msg->payload, msg->len);
+ break;
default:
DBG("Unhandled notification service=%d opcode=0x%x",
msg->service_id, msg->opcode);