diff options
Diffstat (limited to 'btif/include')
-rw-r--r-- | btif/include/btif_api.h | 17 | ||||
-rw-r--r-- | btif/include/btif_storage.h | 12 |
2 files changed, 29 insertions, 0 deletions
diff --git a/btif/include/btif_api.h b/btif/include/btif_api.h index bf9ee3f29..fc1b67afe 100644 --- a/btif/include/btif_api.h +++ b/btif/include/btif_api.h @@ -87,6 +87,23 @@ bt_status_t btif_shutdown_bluetooth(void); /******************************************************************************* ** +** Function is_restricted_mode +** +** Description Checks if BT was enabled in restriced mode. In restricted +** mode, bonds that are created are marked as temporary. +** These bonds persist until we leave restricted mode, at +** which point they will be deleted from the config. Also +** while in restricted mode, the user can access devices +** that are already paired before entering restricted mode, +** but they cannot remove any of these devices. +** +** Returns bool +** +*******************************************************************************/ +bool is_restricted_mode(void); + +/******************************************************************************* +** ** Function btif_get_adapter_properties ** ** Description Fetches all local adapter properties diff --git a/btif/include/btif_storage.h b/btif/include/btif_storage.h index e4d465c9f..46e4ced94 100644 --- a/btif/include/btif_storage.h +++ b/btif/include/btif_storage.h @@ -325,6 +325,18 @@ BOOLEAN btif_storage_is_fixed_pin_zeros_keyboard(bt_bdaddr_t *remote_bd_addr); /******************************************************************************* ** +** Function btif_storage_is_retricted_device +** +** Description BTIF storage API - checks if this device is a restricted device +** +** Returns TRUE if the device is labled as restricted +** FALSE otherwise +** +*******************************************************************************/ +BOOLEAN btif_storage_is_restricted_device(const bt_bdaddr_t *remote_bd_addr); + +/******************************************************************************* +** ** Function btif_storage_is_wiimote ** ** Description BTIF storage API - checks if this device is a wiimote |