summaryrefslogtreecommitdiffstats
path: root/btif/include
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-04-11 17:56:17 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:17 -0700
commit35207a7fe091c5ade3ac3a80acf8366beb6e21da (patch)
tree64124a91e7d597677b16962c528d7f7b495d1150 /btif/include
parent2f9c0a7966a08936e8ae7a03ab8fbf1de3b22e0e (diff)
downloadexternal_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.zip
external_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.tar.gz
external_bluetooth_bluedroid-35207a7fe091c5ade3ac3a80acf8366beb6e21da.tar.bz2
Added support to init/shutdown Bluetooth as part of
the HAL init/cleanup. This allows Java/JNI to query BD_ADDR and BD_NAME prior to HAL BT_enable. Change-Id: Ic56d859d75d6adaa134d42bb31da4f2c45e349d9
Diffstat (limited to 'btif/include')
-rwxr-xr-xbtif/include/btif_common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/btif/include/btif_common.h b/btif/include/btif_common.h
index 635caeb..3ecea9f 100755
--- a/btif/include/btif_common.h
+++ b/btif/include/btif_common.h
@@ -140,6 +140,24 @@ enum
BTIF_DM_CB_HID_REMOTE_NAME, /* Remote name callback for HID device */
};
+/* Macro definitions for BD ADDR persistence */
+/* PROPERTY_BT_BDADDR_PATH
+ The property key stores the storage location of Bluetooth Device Address
+*/
+#ifndef PROPERTY_BT_BDADDR_PATH
+#define PROPERTY_BT_BDADDR_PATH "ro.bt.bdaddr_path"
+#endif
+
+/* PERSIST_BDADDR_PROPERTY
+ If there is no valid bdaddr available from PROPERTY_BT_BDADDR_PATH,
+ generating a random BDADDR and keeping it in the PERSIST_BDADDR_DROP.
+*/
+#ifndef PERSIST_BDADDR_PROPERTY
+#define PERSIST_BDADDR_PROPERTY "persist.service.bdroid.bdaddr"
+#endif
+
+#define FACTORY_BT_BDADDR_STORAGE_LEN 17
+
/************************************************************************************
** Type definitions for callback functions
************************************************************************************/