diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-11-21 12:16:40 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-24 15:25:45 +0100 |
commit | 963def301509c7620d497892e151dca575434867 (patch) | |
tree | e6239de4b11ce7a9d5d4f2b780937718116eef21 /android/bluetooth.c | |
parent | 64f08bc02b12a402871d9f2c0e69829adfcba1be (diff) | |
download | bluez-963def301509c7620d497892e151dca575434867.tar.gz |
android/hal-bluetooth: Implement read_energy_info
Diffstat (limited to 'android/bluetooth.c')
-rw-r--r-- | android/bluetooth.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c index 947a83c23..ca3dd24b8 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -5155,6 +5155,16 @@ static void handle_get_connection_state(const void *buf, uint16_t len) -1); } +static void handle_read_energy_info(const void *buf, uint16_t len) +{ + DBG(""); + + /* TODO */ + + ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_BLUETOOTH, HAL_OP_READ_ENERGY_INFO, + HAL_STATUS_UNSUPPORTED); +} + static const struct ipc_handler cmd_handlers[] = { /* HAL_OP_ENABLE */ { handle_enable_cmd, false, 0 }, @@ -5208,6 +5218,8 @@ static const struct ipc_handler cmd_handlers[] = { /* HAL_OP_GET_CONNECTION_STATE */ { handle_get_connection_state, false, sizeof(struct hal_cmd_get_connection_state) }, + /* HAL_OP_READ_ENERGY_INFO */ + { handle_read_energy_info, false, 0 }, }; bool bt_bluetooth_register(struct ipc *ipc, uint8_t mode) |