summaryrefslogtreecommitdiffstats
path: root/btif/include
diff options
context:
space:
mode:
authorHarish Paryani <hparyani@broadcom.com>2012-04-03 19:18:37 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:14 -0700
commit04db88d9bd23fa98916e031987f3ba2063783acc (patch)
tree2f12d6473787bb060984d126ef341b4aeaa4b22b /btif/include
parentac6d66d9bd6bcd4aafb80d50368167e1b9069a41 (diff)
downloadexternal_bluetooth_bluedroid-04db88d9bd23fa98916e031987f3ba2063783acc.zip
external_bluetooth_bluedroid-04db88d9bd23fa98916e031987f3ba2063783acc.tar.gz
external_bluetooth_bluedroid-04db88d9bd23fa98916e031987f3ba2063783acc.tar.bz2
Check-in Mouse pairing fixes.
Change-Id: I55d018d204a2fd20a934e1521457119fa118ceb6
Diffstat (limited to 'btif/include')
-rw-r--r--btif/include/btif_hh.h8
-rw-r--r--btif/include/btif_storage.h31
2 files changed, 34 insertions, 5 deletions
diff --git a/btif/include/btif_hh.h b/btif/include/btif_hh.h
index 0f26b71..0c6d866 100644
--- a/btif/include/btif_hh.h
+++ b/btif/include/btif_hh.h
@@ -100,8 +100,6 @@ typedef enum
typedef struct
{
BTIF_HH_STATUS status;
- BOOLEAN mouse_pairing;
- bt_bdaddr_t mouse_pairing_bda;
btif_hh_device_t devices[BTIF_HH_MAX_HID];
UINT32 device_num;
btif_hh_added_device_t added_devices[BTIF_HH_MAX_ADDED_DEV];
@@ -111,12 +109,12 @@ typedef struct
extern btif_hh_cb_t btif_hh_cb;
extern btif_hh_device_t *btif_hh_find_connected_dev_by_handle(UINT8 handle);
-extern void btif_hh_update_keyevents(UINT8 dev_handle, int keyevents);
-extern void btif_hh_mouse_pairing(bt_bdaddr_t bd_addr);
-extern void btif_hh_clear_mouse_pairing(bt_bdaddr_t bd_addr);
extern void btif_hh_remove_device(bt_bdaddr_t bd_addr);
BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bda, tBTA_HH_ATTR_MASK attr_mask);
+extern void btif_hh_virtual_unpug(bt_bdaddr_t *bd_addr);
+extern void btif_hh_disconnect(bt_bdaddr_t *bd_addr);
+BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bd_addr, tBTA_HH_ATTR_MASK attr_mask);
#endif
diff --git a/btif/include/btif_storage.h b/btif/include/btif_storage.h
index c57f7df..00121e9 100644
--- a/btif/include/btif_storage.h
+++ b/btif/include/btif_storage.h
@@ -185,5 +185,36 @@ bt_status_t btif_storage_remove_bonded_device(bt_bdaddr_t *remote_bd_addr);
*******************************************************************************/
bt_status_t btif_storage_load_bonded_devices(void);
+/*******************************************************************************
+**
+** Function btif_storage_add_hid_device_info
+**
+** Description BTIF storage API - Adds the hid information of bonded hid devices-to NVRAM
+**
+** Returns BT_STATUS_SUCCESS if the store was successful,
+** BT_STATUS_FAIL otherwise
+**
+*******************************************************************************/
+
+bt_status_t btif_storage_add_hid_device_info(bt_bdaddr_t *remote_bd_addr,
+ UINT16 attr_mask, UINT8 sub_class,
+ UINT8 app_id, UINT16 vendor_id,
+ UINT16 product_id, UINT16 version,
+ UINT8 ctry_code, UINT16 dl_len, UINT8 *dsc_list);
+
+
+/*******************************************************************************
+**
+** Function btif_storage_load_bonded_hid_info
+**
+** Description BTIF storage API - Loads hid info for all the bonded devices from NVRAM
+** and adds those devices to the BTA_HH.
+**
+** Returns BT_STATUS_SUCCESS if successful, BT_STATUS_FAIL otherwise
+**
+*******************************************************************************/
+bt_status_t btif_storage_load_bonded_hid_info(void);
+
+
#endif /* BTIF_STORAGE_H */