X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-oal%2Foal-device-mgr.c;h=df06cee855a843d565464f73eadf1ffb1b531929;hb=dbc49be4c7b96c3ad61be0896d47ac37bff97527;hp=1ddacc966953a459cb6a266c898998d46c5628ae;hpb=a85d361ff1719456fd37d32adf68aef94e9d67b5;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-oal/oal-device-mgr.c b/bt-oal/oal-device-mgr.c index 1ddacc9..df06cee 100755 --- a/bt-oal/oal-device-mgr.c +++ b/bt-oal/oal-device-mgr.c @@ -547,6 +547,26 @@ oal_status_t device_enable_gap_auth_notifications(oal_gap_auth_type_e type, gboo #endif } +oal_status_t device_disconnect(bt_address_t * addr) +{ + int res; + bdstr_t bdstr; + + CHECK_OAL_INITIALIZED(); + + OAL_CHECK_PARAMETER(addr, return); + + API_TRACE("[%s]", bdt_bd2str(addr, &bdstr)); + + res = blued_api->device_disconnect((bt_bdaddr_t *)addr); + if (res != BT_STATUS_SUCCESS) { + BT_ERR("device_disconnect error: [%s]", status2string(res)); + return convert_to_oal_status(res); + } + + return OAL_STATUS_SUCCESS; +} + void cb_device_properties(bt_status_t status, bt_bdaddr_t *bd_addr, int num_properties, bt_property_t *properties) { @@ -936,4 +956,5 @@ void cb_raw_rssi_received(bt_bdaddr_t *bd_addr, int32_t link_type, int32_t rssi) ev, sizeof(event_dev_rssi_info_t), (bt_address_t*)bd_addr); BT_DBG("-"); } + #endif