summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatish Kodishala <skodisha@codeaurora.org>2015-05-06 19:25:42 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:30:40 -0600
commit1ec90ad14867768564a0441de9cf7cfa9e9783f6 (patch)
tree269b172fa7a26c7d44217dd5b57b3d98441a36c2
parenta3b7ebbcbc51f2b3d495290ddf240f6faaca6559 (diff)
downloadhardware_libhardware-1ec90ad14867768564a0441de9cf7cfa9e9783f6.zip
hardware_libhardware-1ec90ad14867768564a0441de9cf7cfa9e9783f6.tar.gz
hardware_libhardware-1ec90ad14867768564a0441de9cf7cfa9e9783f6.tar.bz2
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
-rw-r--r--include/hardware/bt_hf_client.h12
1 files changed, 12 insertions, 0 deletions
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. */