Add Support for AVRCP Controller Feature
- Provide support for AVRCP Controller CAT 1 and CAT 2
passthrough commands.
Change-Id: If437a3bbd1e97d22e5ceddf0d052dbaad1093257
diff --git a/include/hardware/bt_rc.h b/include/hardware/bt_rc.h
index d455543..277d9c8 100644
--- a/include/hardware/bt_rc.h
+++ b/include/hardware/bt_rc.h
@@ -171,6 +171,10 @@
/** Callback for passthrough commands */
typedef void (* btrc_passthrough_cmd_callback) (int id, int key_state);
+typedef void (* btrc_passthrough_rsp_callback) (int id, int key_state);
+
+typedef void (* btrc_connection_state_callback) (int state, bt_bdaddr_t *bd_addr);
+
/** BT-RC callback structure. */
typedef struct {
/** set to sizeof(BtRcCallbacks) */
@@ -187,6 +191,8 @@
btrc_register_notification_callback register_notification_cb;
btrc_volume_change_callback volume_change_cb;
btrc_passthrough_cmd_callback passthrough_cmd_cb;
+ btrc_passthrough_rsp_callback passthrough_rsp_cb;
+ btrc_connection_state_callback connection_state_cb;
} btrc_callbacks_t;
/** Represents the standard BT-RC interface. */
@@ -257,6 +263,8 @@
*/
bt_status_t (*set_volume)(uint8_t volume);
+ bt_status_t (*send_pass_through_cmd) (uint8_t key_code, uint8_t key_state);
+
/** Closes the interface. */
void (*cleanup)( void );
} btrc_interface_t;