diff options
author | Taejin Woo <tt.woo@samsung.com> | 2013-10-23 13:52:15 +0900 |
---|---|---|
committer | Taejin Woo <tt.woo@samsung.com> | 2013-10-23 16:17:20 +0900 |
commit | 8bae75a12879a9f3a86ddeaa0561fa53380043d0 (patch) | |
tree | 3d3324b1ed537ef661341cc04f3e54f00ed94912 /src/bluetooth-pan.c | |
parent | 1c303a6746cd73a7cc6f219d954851e1917b8c78 (diff) | |
download | bluetooth-8bae75a12879a9f3a86ddeaa0561fa53380043d0.tar.gz bluetooth-8bae75a12879a9f3a86ddeaa0561fa53380043d0.tar.bz2 bluetooth-8bae75a12879a9f3a86ddeaa0561fa53380043d0.zip |
Merge the latest CAPI Private code in Tizen2.2 RSA
We do CAPI Code Sync in tizen2.2 RSA.
Change-Id: I6b2eb95b365566b1e6a78744fb3f8dbe0b7281e6
Diffstat (limited to 'src/bluetooth-pan.c')
-rw-r--r-- | src/bluetooth-pan.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bluetooth-pan.c b/src/bluetooth-pan.c index eb27268..740b429 100644 --- a/src/bluetooth-pan.c +++ b/src/bluetooth-pan.c @@ -70,6 +70,23 @@ int bt_nap_disconnect_all(void) return error; } +int bt_nap_disconnect(const char *remote_address) +{ + int error = BT_ERROR_INVALID_PARAMETER; + bluetooth_device_address_t addr_hex = { {0,} }; + + BT_CHECK_INIT_STATUS(); + BT_CHECK_INPUT_PARAMETER(remote_address); + _bt_convert_address_to_hex(&addr_hex, remote_address); + error = bluetooth_network_server_disconnect(&addr_hex); + error = _bt_get_error_code(error); + if (error != BT_ERROR_NONE) { + BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), + error); + } + return error; +} + int bt_nap_set_connection_state_changed_cb( bt_nap_connection_state_changed_cb callback, void *user_data) |