summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-01-27 17:12:49 -0200
committerMarcel Holtmann <marcel@holtmann.org>2010-01-27 21:18:07 +0100
commitac6672e9b38e69f251a8237fb70612a5455effa4 (patch)
tree00d433309f2e3f0dbe977f5a5ccd8835269afac0 /drivers
parent5e94e2bad84d232ced58f54b52999277ef198048 (diff)
downloadofono-ac6672e9b38e69f251a8237fb70612a5455effa4.tar.bz2
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 <zhenhua.zhang@intel.com> for its prototype on this code.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hfpmodem/hfpmodem.h4
1 files changed, 4 insertions, 0 deletions
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 <drivers/atmodem/atutil.h>
+#include <ofono/dbus.h>
/* 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();