summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorSreenidhi T <nidhit@broadcom.com>2012-04-11 06:50:28 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:16 -0700
commit5edcdde0b51f3d5153990672f55422bbcabc5cec (patch)
treee7d947fe698b9d6edfd68b3bbd91265075a56551 /btif
parent7ca15ca81eee23a930eecc9f388cc73b4efc1994 (diff)
downloadexternal_bluetooth_bluedroid-5edcdde0b51f3d5153990672f55422bbcabc5cec.zip
external_bluetooth_bluedroid-5edcdde0b51f3d5153990672f55422bbcabc5cec.tar.gz
external_bluetooth_bluedroid-5edcdde0b51f3d5153990672f55422bbcabc5cec.tar.bz2
Added changes for parsing bt_did.conf file
Change-Id: I3cd885d49080a1bfa258c39881fd7cd5fdf2b652
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/btif/src/btif_core.c b/btif/src/btif_core.c
index 47d09f2..b77cddb 100755
--- a/btif/src/btif_core.c
+++ b/btif/src/btif_core.c
@@ -76,6 +76,10 @@
#define BTIF_TASK_STACK_SIZE 0x2000 /* In bytes */
#endif
+#ifndef BTE_DID_CONF_FILE
+#define BTE_DID_CONF_FILE "/etc/bluetooth/bt_did.conf"
+#endif
+
#define BTIF_TASK_STR ((INT8 *) "BTIF")
static UINT32 btif_task_stack[(BTIF_TASK_STACK_SIZE + 3) / 4];
@@ -119,6 +123,7 @@ static void btif_sendmsg(void *p_msg);
/************************************************************************************
** Externs
************************************************************************************/
+extern void bte_load_did_conf(const char *p_path);
/** TODO: Move these to _common.h */
void bte_main_boot_entry(void);
@@ -428,6 +433,7 @@ void btif_enable_bluetooth_evt(tBTA_STATUS status, BD_ADDR local_bd)
btif_enabled = 1;
//init rfcomm & l2cap api
btif_sock_init();
+ bte_load_did_conf(BTE_DID_CONF_FILE);
HAL_CBACK(bt_hal_cbacks, adapter_state_changed_cb, BT_STATE_ON);
}
else