summaryrefslogtreecommitdiffstats
path: root/btif/include/btif_storage.h
diff options
context:
space:
mode:
authorGanesh Ganapathi Batta <ganeshg@broadcom.com>2012-05-04 14:30:30 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:20 -0700
commit78b0ba7aef165ed0e6a6d2b343bbc44a886c2dff (patch)
treeade5df25f87d56f31404ddb454f3f91cb964ad99 /btif/include/btif_storage.h
parent5ea31910ef79943ef321465e10c7707c68a49abd (diff)
downloadexternal_bluetooth_bluedroid-78b0ba7aef165ed0e6a6d2b343bbc44a886c2dff.zip
external_bluetooth_bluedroid-78b0ba7aef165ed0e6a6d2b343bbc44a886c2dff.tar.gz
external_bluetooth_bluedroid-78b0ba7aef165ed0e6a6d2b343bbc44a886c2dff.tar.bz2
Implementation of auto pair logic (Automatically pair with legacy headsets and pointing devices with fixed pin key .0000.) in BT IF layer.
Change-Id: Iac4a141669f9a3766a72da09886c58cac67eae86
Diffstat (limited to 'btif/include/btif_storage.h')
-rwxr-xr-x[-rw-r--r--]btif/include/btif_storage.h62
1 files changed, 61 insertions, 1 deletions
diff --git a/btif/include/btif_storage.h b/btif/include/btif_storage.h
index 59cad1f..f4b2ca3 100644..100755
--- a/btif/include/btif_storage.h
+++ b/btif/include/btif_storage.h
@@ -269,7 +269,6 @@ bt_status_t btif_storage_add_hid_device_info(bt_bdaddr_t *remote_bd_addr,
UINT16 product_id, UINT16 version,
UINT8 ctry_code, UINT16 dl_len, UINT8 *dsc_list);
-
/*******************************************************************************
**
** Function btif_storage_load_bonded_hid_info
@@ -282,8 +281,69 @@ bt_status_t btif_storage_add_hid_device_info(bt_bdaddr_t *remote_bd_addr,
*******************************************************************************/
bt_status_t btif_storage_load_bonded_hid_info(void);
+/*******************************************************************************
+**
+** Function btif_storage_remove_hid_info
+**
+** Description BTIF storage API - Deletes the bonded hid device info from NVRAM
+**
+** Returns BT_STATUS_SUCCESS if the deletion was successful,
+** BT_STATUS_FAIL otherwise
+**
+*******************************************************************************/
+
bt_status_t btif_storage_remove_hid_info(bt_bdaddr_t *remote_bd_addr);
+/*******************************************************************************
+**
+** Function btif_storage_load_autopair_device_list
+**
+** Description BTIF storage API - Populates auto pair device list
+**
+** Returns BT_STATUS_SUCCESS if the auto pair blacklist is successfully populated
+** BT_STATUS_FAIL otherwise
+**
+*******************************************************************************/
+bt_status_t btif_storage_load_autopair_device_list();
+
+/*******************************************************************************
+**
+** Function btif_storage_is_device_autopair_blacklisted
+**
+** Description BTIF storage API Checks if the given device is blacklisted for auto pairing
+**
+** Returns TRUE if the device is found in the auto pair blacklist
+** FALSE otherwise
+**
+*******************************************************************************/
+
+BOOLEAN btif_storage_is_device_autopair_blacklisted(bt_bdaddr_t *remote_dev_addr);
+
+/*******************************************************************************
+**
+** Function btif_storage_add_device_to_autopair_blacklist
+**
+** Description BTIF storage API - Add a remote device to the auto pairing blacklist
+**
+** Returns BT_STATUS_SUCCESS if the device is successfully added to the auto pair blacklist
+** BT_STATUS_FAIL otherwise
+**
+*******************************************************************************/
+
+bt_status_t btif_storage_add_device_to_autopair_blacklist(bt_bdaddr_t *remote_dev_addr);
+
+/*******************************************************************************
+**
+** Function btif_storage_is_fixed_pin_zeros_keyboard
+**
+** Description BTIF storage API - checks if this device has fixed PIN key device list
+**
+** Returns TRUE if the device is found in the fixed pin keyboard device list
+** FALSE otherwise
+**
+*******************************************************************************/
+BOOLEAN btif_storage_is_fixed_pin_zeros_keyboard(bt_bdaddr_t *remote_dev_addr);
+
#endif /* BTIF_STORAGE_H */