diff --git a/android/Android.mk b/android/Android.mk
index f838bfd..40d696c 100644
--- a/android/Android.mk
+++ b/android/Android.mk
bluez/android/client/if-hf.c \
bluez/android/client/if-hh.c \
bluez/android/client/if-pan.c \
+ bluez/android/client/if-hl.c \
bluez/android/client/if-sock.c \
bluez/android/client/if-gatt.c \
bluez/android/hal-utils.c \
diff --git a/android/Makefile.am b/android/Makefile.am
index c51cce2..cf70fab 100644
--- a/android/Makefile.am
+++ b/android/Makefile.am
android/client/if-hf.c \
android/client/if-hh.c \
android/client/if-pan.c \
+ android/client/if-hl.c \
android/client/if-sock.c \
android/client/if-audio.c \
android/hardware/hardware.c \
diff --git a/android/client/haltest.c b/android/client/haltest.c
index bd97dc6..5d05b75 100644
--- a/android/client/haltest.c
+++ b/android/client/haltest.c
&hf_if,
&hh_if,
&pan_if,
+ &hl_if,
&sock_if,
NULL
};
diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 8dcffea..cef124f 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
{
const char *id;
const void **pif = NULL;
- const void *dummy = NULL;
RETURN_IF_NULL(if_bluetooth);
if (argc <= 2) {
else if (strcmp(BT_PROFILE_ADVANCED_AUDIO_ID, id) == 0)
pif = (const void **) &if_av;
else if (strcmp(BT_PROFILE_HEALTH_ID, id) == 0)
- pif = &dummy; /* TODO: change when if_hl is there */
+ pif = (const void **) &if_hl;
else if (strcmp(BT_PROFILE_SOCKETS_ID, id) == 0)
pif = (const void **) &if_sock;
else if (strcmp(BT_PROFILE_HIDHOST_ID, id) == 0)
diff --git a/android/client/if-hl.c b/android/client/if-hl.c
new file mode 100644
index 0000000..5ea29f8
--- /dev/null
+++ b/android/client/if-hl.c
+/*
+ * Copyright (C) 2014 Intel Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include<stdio.h>
+#include<ctype.h>
+
+#include<hardware/bluetooth.h>
+#include<hardware/bt_hl.h>
+
+#include "if-main.h"
+#include "pollhandler.h"
+#include "../hal-utils.h"
+
+const bthl_interface_t *if_hl = NULL;
+
+static bthl_callbacks_t hl_cbacks = {
+ .size = sizeof(hl_cbacks),
+ .app_reg_state_cb = NULL,
+ .channel_state_cb = NULL,
+};
+
+/* init */
+
+static void init_p(int argc, const char **argv)
+{
+ RETURN_IF_NULL(if_hl);
+
+ EXEC(if_hl->init, &hl_cbacks);
+}
+
+/* cleanup */
+
+static void cleanup_p(int argc, const char **argv)
+{
+ RETURN_IF_NULL(if_hl);
+
+ EXECV(if_hl->cleanup);
+ if_hl = NULL;
+}
+
+static struct method methods[] = {
+ STD_METHOD(init),
+ STD_METHOD(cleanup),
+ END_METHOD
+};
+
+const struct interface hl_if = {
+ .name = "hl",
+ .methods = methods
+};
diff --git a/android/client/if-main.h b/android/client/if-main.h
index b628464..8865ffc 100644
--- a/android/client/if-main.h
+++ b/android/client/if-main.h
extern const bthf_interface_t *if_hf;
extern const bthh_interface_t *if_hh;
extern const btpan_interface_t *if_pan;
+extern const bthl_interface_t *if_hl;
extern const btsock_interface_t *if_sock;
extern const btgatt_interface_t *if_gatt;
extern const btgatt_server_interface_t *if_gatt_server;
extern const struct interface sock_if;
extern const struct interface hf_if;
extern const struct interface hh_if;
+extern const struct interface hl_if;
/* Interfaces that will show up in tool (first part of command line) */
extern const struct interface *interfaces[];