From ac6672e9b38e69f251a8237fb70612a5455effa4 Mon Sep 17 00:00:00 2001 From: "Gustavo F. Padovan" Date: Wed, 27 Jan 2010 17:12:49 -0200 Subject: Add HFP support through BlueZ It uses BlueZ through to get HFP working following the org.bluez.HandsfreeGateway and org.bluez.HandsfreeAgent from the BlueZ D-Bus API. You need the HFP suport into BlueZ and the new D-Bus 1.3 or later with fd-passing support. Many thanks to Zhenhua Zhang for its prototype on this code. --- drivers/hfpmodem/hfpmodem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers') diff --git a/drivers/hfpmodem/hfpmodem.h b/drivers/hfpmodem/hfpmodem.h index 509846b7..6f0ab1fb 100644 --- a/drivers/hfpmodem/hfpmodem.h +++ b/drivers/hfpmodem/hfpmodem.h @@ -22,6 +22,7 @@ #define __BLUETOOTH_H__ #include +#include /* AG supported features bitmap. Bluetooth HFP 1.5 spec page 77 */ #define AG_FEATURE_3WAY 0x1 @@ -63,11 +64,14 @@ enum hfp_indicator { struct hfp_data { GAtChat *chat; + char *handsfree_path; + DBusMessage *slc_msg; unsigned int ag_features; unsigned int ag_mpty_features; unsigned int hf_features; unsigned char cind_pos[HFP_INDICATOR_LAST]; unsigned int cind_val[HFP_INDICATOR_LAST]; + unsigned int at_timeout; }; extern void hfp_netreg_init(); -- cgit v1.2.3