* [PATCH BlueZ 1/3] android/adapter: Log not implemented properties
@ 2013-11-01 13:52 Luiz Augusto von Dentz
2013-11-01 13:52 ` [PATCH BlueZ 2/3] android/hid: Log not implemented HAL functions Luiz Augusto von Dentz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2013-11-01 13:52 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This makes it easier to stop which functions the HAL is calling.
---
android/adapter.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/android/adapter.c b/android/adapter.c
index f986020..0bf627f 100644
--- a/android/adapter.c
+++ b/android/adapter.c
@@ -940,6 +940,78 @@ static void send_adapter_address(void)
g_free(ev);
}
+static bool get_name(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_uuids(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_class(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_type(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_service(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_scan_mode(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_devices(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
+static bool get_disc_timeout(void)
+{
+ DBG("Not implemented");
+
+ /* TODO: Add implementation */
+
+ return false;
+}
+
static bool get_property(void *buf, uint16_t len)
{
struct hal_cmd_get_adapter_prop *cmd = buf;
@@ -949,13 +1021,21 @@ static bool get_property(void *buf, uint16_t len)
send_adapter_address();
return true;
case HAL_PROP_ADAPTER_NAME:
+ return get_name();
case HAL_PROP_ADAPTER_UUIDS:
+ return get_uuids();
case HAL_PROP_ADAPTER_CLASS:
+ return get_class();
case HAL_PROP_ADAPTER_TYPE:
+ return get_type();
case HAL_PROP_ADAPTER_SERVICE_REC:
+ return get_service();
case HAL_PROP_ADAPTER_SCAN_MODE:
+ return get_scan_mode();
case HAL_PROP_ADAPTER_BONDED_DEVICES:
+ return get_devices();
case HAL_PROP_ADAPTER_DISC_TIMEOUT:
+ return get_disc_timeout();
default:
return false;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH BlueZ 2/3] android/hid: Log not implemented HAL functions 2013-11-01 13:52 [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Luiz Augusto von Dentz @ 2013-11-01 13:52 ` Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 3/3] android/socket: " Luiz Augusto von Dentz 2013-11-01 14:41 ` [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Johan Hedberg 2 siblings, 0 replies; 4+ messages in thread From: Luiz Augusto von Dentz @ 2013-11-01 13:52 UTC (permalink / raw) To: linux-bluetooth From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This makes it easier to spot which functions the HAL is calling. --- android/hid.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/android/hid.c b/android/hid.c index 6e6f606..e660552 100644 --- a/android/hid.c +++ b/android/hid.c @@ -564,6 +564,60 @@ static uint8_t bt_hid_disconnect(struct hal_cmd_hid_disconnect *cmd, return HAL_STATUS_SUCCESS; } +static uint8_t bt_hid_virtual_unplug(struct hal_cmd_hid_vp *cmd, uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_info(struct hal_cmd_hid_set_info *cmd, uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_get_protocol(struct hal_cmd_hid_get_protocol *cmd, + uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_set_protocol(struct hal_cmd_hid_set_protocol *cmd, + uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_get_report(struct hal_cmd_hid_get_report *cmd, + uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_set_report(struct hal_cmd_hid_set_report *cmd, + uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + +static uint8_t bt_hid_send_data(struct hal_cmd_hid_send_data *cmd, + uint16_t len) +{ + DBG("Not Implemented"); + + return HAL_STATUS_FAILED; +} + void bt_hid_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, uint16_t len) { uint8_t status = HAL_STATUS_FAILED; @@ -575,6 +629,27 @@ void bt_hid_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, uint16_t len) case HAL_OP_HID_DISCONNECT: status = bt_hid_disconnect(buf, len); break; + case HAL_OP_HID_VP: + status = bt_hid_virtual_unplug(buf, len); + break; + case HAL_OP_HID_SET_INFO: + status = bt_hid_info(buf, len); + break; + case HAL_OP_HID_GET_PROTOCOL: + status = bt_hid_get_protocol(buf, len); + break; + case HAL_OP_HID_SET_PROTOCOL: + status = bt_hid_set_protocol(buf, len); + break; + case HAL_OP_HID_GET_REPORT: + status = bt_hid_get_report(buf, len); + break; + case HAL_OP_HID_SET_REPORT: + status = bt_hid_set_report(buf, len); + break; + case HAL_OP_HID_SEND_DATA: + status = bt_hid_send_data(buf, len); + break; default: DBG("Unhandled command, opcode 0x%x", opcode); break; -- 1.8.3.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH BlueZ 3/3] android/socket: Log not implemented HAL functions 2013-11-01 13:52 [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 2/3] android/hid: Log not implemented HAL functions Luiz Augusto von Dentz @ 2013-11-01 13:52 ` Luiz Augusto von Dentz 2013-11-01 14:41 ` [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Johan Hedberg 2 siblings, 0 replies; 4+ messages in thread From: Luiz Augusto von Dentz @ 2013-11-01 13:52 UTC (permalink / raw) To: linux-bluetooth From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This makes it easier to spot which functions the HAL is calling. --- android/socket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/socket.c b/android/socket.c index 39709cd..b6eed6e 100644 --- a/android/socket.c +++ b/android/socket.c @@ -34,11 +34,15 @@ static int handle_listen(void *buf) { + DBG("Not implemented"); + return -1; } static int handle_connect(void *buf) { + DBG("Not implemented"); + return -1; } -- 1.8.3.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ 1/3] android/adapter: Log not implemented properties 2013-11-01 13:52 [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 2/3] android/hid: Log not implemented HAL functions Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 3/3] android/socket: " Luiz Augusto von Dentz @ 2013-11-01 14:41 ` Johan Hedberg 2 siblings, 0 replies; 4+ messages in thread From: Johan Hedberg @ 2013-11-01 14:41 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth Hi Luiz, On Fri, Nov 01, 2013, Luiz Augusto von Dentz wrote: > This makes it easier to stop which functions the HAL is calling. > --- > android/adapter.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 80 insertions(+) All three patches have been applied. Thanks. Johan ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-01 14:41 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-11-01 13:52 [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 2/3] android/hid: Log not implemented HAL functions Luiz Augusto von Dentz 2013-11-01 13:52 ` [PATCH BlueZ 3/3] android/socket: " Luiz Augusto von Dentz 2013-11-01 14:41 ` [PATCH BlueZ 1/3] android/adapter: Log not implemented properties Johan Hedberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox