diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-11-28 15:15:23 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-11-28 18:02:26 +0200 |
commit | a50edbf560db0cdd97937bc584282f8240afc5a0 (patch) | |
tree | cc6ad7f4665feb7f718081a20832a2bf11ef213f /android | |
parent | 6456e156640bd663da8802ad6ed75d670ef98098 (diff) | |
download | bluez-a50edbf560db0cdd97937bc584282f8240afc5a0.tar.gz |
android: Use ipc_send_rsp helper for replying success
Where applicable use helper as this make code easier to understand.
Diffstat (limited to 'android')
-rw-r--r-- | android/bluetooth.c | 2 | ||||
-rw-r--r-- | android/main.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c index 716c0eb0d..b5fd6442a 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -2263,7 +2263,7 @@ void bt_bluetooth_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len) goto error; } - ipc_send(sk, HAL_SERVICE_ID_BLUETOOTH, opcode, 0, NULL, -1); + ipc_send_rsp(HAL_SERVICE_ID_BLUETOOTH, opcode, HAL_STATUS_SUCCESS); return; error: diff --git a/android/main.c b/android/main.c index 6fe0d1c2a..211503ba0 100644 --- a/android/main.c +++ b/android/main.c @@ -115,8 +115,8 @@ static void service_register(void *buf, uint16_t len) services[m->service_id] = true; - ipc_send(g_io_channel_unix_get_fd(hal_cmd_io), HAL_SERVICE_ID_CORE, - HAL_OP_REGISTER_MODULE, 0, NULL, -1); + ipc_send_rsp(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE, + HAL_STATUS_SUCCESS); info("Service ID=%u registered", m->service_id); return; @@ -157,8 +157,8 @@ static void service_unregister(void *buf, uint16_t len) services[m->service_id] = false; - ipc_send(g_io_channel_unix_get_fd(hal_cmd_io), HAL_SERVICE_ID_CORE, - HAL_OP_UNREGISTER_MODULE, 0, NULL, -1); + ipc_send_rsp(HAL_SERVICE_ID_CORE, HAL_OP_UNREGISTER_MODULE, + HAL_STATUS_SUCCESS); info("Service ID=%u unregistered", m->service_id); return; |