Adapt device disconnect to BT HAL framework
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / include / oal-device-mgr.h
index cf493ad..025c761 100755 (executable)
@@ -425,6 +425,19 @@ oal_status_t device_enable_rssi_monitoring(bt_address_t *addr, unsigned int link
  */
 oal_status_t device_enable_gap_auth_notifications(oal_gap_auth_type_e type, gboolean enable);
 
+/**
+ * @brief Disconnect the device
+ *
+ * @details This API is used to ACL disconnect the device
+ *
+ * @param[in] addr: Remote device address.
+ *
+ * @return TRUE if adapter has accepted the ACL Disconnect request FALSE otherwise.
+ *
+ * @pre Adapter must be enabled with adapter_enable() followed by OAL_EVENT_ADAPTER_ENABLED
+ */
+oal_status_t device_disconnect(bt_address_t * addr);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */