From 1ec90ad14867768564a0441de9cf7cfa9e9783f6 Mon Sep 17 00:00:00 2001 From: Satish Kodishala Date: Wed, 6 May 2015 19:25:42 +0530 Subject: Bluetooth: Add support for AT+CGMI and AT+CGMM Added new APIs to be able to upstream the manufactrer identification and manufacturer model from BT stack to HF client state machine. CRs-fixed: 844824 Change-Id: I0bc61e429930468fba71d7edd7efe54bfe7729b3 --- include/hardware/bt_hf_client.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/hardware/bt_hf_client.h b/include/hardware/bt_hf_client.h index 8acf1b2..0577e97 100644 --- a/include/hardware/bt_hf_client.h +++ b/include/hardware/bt_hf_client.h @@ -266,6 +266,16 @@ typedef void (* bthf_client_last_voice_tag_number_callback) (const char *number) */ typedef void (* bthf_client_ring_indication_callback) (void); +/** + * Callback for sending cgmi indication to app + */ +typedef void (* bthf_client_cgmi_indication_callback) (const char *str); + +/** + * Callback for sending cgmm indication to app + */ +typedef void (* bthf_client_cgmm_indication_callback) (const char *str); + /** BT-HF callback structure. */ typedef struct { /** set to sizeof(BtHfClientCallbacks) */ @@ -291,6 +301,8 @@ typedef struct { bthf_client_in_band_ring_tone_callback in_band_ring_tone_cb; bthf_client_last_voice_tag_number_callback last_voice_tag_number_callback; bthf_client_ring_indication_callback ring_indication_cb; + bthf_client_cgmi_indication_callback cgmi_cb; + bthf_client_cgmm_indication_callback cgmm_cb; } bthf_client_callbacks_t; /** Represents the standard BT-HF interface. */ -- cgit v1.1