diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2012-09-11 10:01:30 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2012-09-11 10:01:30 +0900 |
commit | 14e024e595e4bc56c43eb5a27933e45ce1e12067 (patch) | |
tree | e0f9c04865fd567127a03f694a761ab6099f2f46 | |
parent | ac9daa343315203d097a8b12bd50b952c9ee7184 (diff) | |
download | bluetooth-14e024e595e4bc56c43eb5a27933e45ce1e12067.tar.gz bluetooth-14e024e595e4bc56c43eb5a27933e45ce1e12067.tar.bz2 bluetooth-14e024e595e4bc56c43eb5a27933e45ce1e12067.zip |
Covert the error code to CAPI type
Change-Id: I474abeb0dcd9b6595e2c9616e0a81e39ca51489b
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | packaging/capi-network-bluetooth.spec | 2 | ||||
-rw-r--r-- | src/bluetooth-pan.c | 5 |
3 files changed, 13 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index a36b115..9931367 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-network-bluetooth (0.1.14-1) unstable; urgency=low + + * Tagging and upload the package + * Git: slp/api/bluetooth + * Tag: capi-network-bluetooth_0.1.14-1 + + -- DoHyun Pyun <dh79.pyun@samsung.com> Tue, 11 Sep 2012 09:56:47 +0900 + capi-network-bluetooth (0.1.13-1) unstable; urgency=low * Tagging and upload the package diff --git a/packaging/capi-network-bluetooth.spec b/packaging/capi-network-bluetooth.spec index d0de1aa..9ca276d 100644 --- a/packaging/capi-network-bluetooth.spec +++ b/packaging/capi-network-bluetooth.spec @@ -1,7 +1,7 @@ #sbs-git:slp/api/bluetooth capi-network-bluetooth 0.1.0 686c444083e4197845c768e5dd034022b1dfa250 Name: capi-network-bluetooth Summary: Network Bluetooth Framework -Version: 0.1.13 +Version: 0.1.14 Release: 1 Group: TO_BE/FILLED_IN License: TO BE FILLED IN diff --git a/src/bluetooth-pan.c b/src/bluetooth-pan.c index 3c858a1..2366b92 100644 --- a/src/bluetooth-pan.c +++ b/src/bluetooth-pan.c @@ -37,6 +37,7 @@ int bt_nap_activate(void) BT_CHECK_INIT_STATUS(); error = bluetooth_network_activate_server(); + error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); @@ -50,6 +51,7 @@ int bt_nap_deactivate(void) BT_CHECK_INIT_STATUS(); error = bluetooth_network_deactivate_server(); + error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); @@ -101,6 +103,7 @@ int bt_panu_connect(const char *remote_address, bt_panu_service_type_e type) if (BT_PANU_SERVICE_TYPE_NAP == type) { error = bluetooth_network_connect(&addr_hex, BLUETOOTH_NETWORK_NAP_ROLE, NULL); + error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); @@ -118,6 +121,7 @@ int bt_panu_disconnect(const char *remote_address) BT_CHECK_INPUT_PARAMETER(remote_address); _bt_convert_address_to_hex(&addr_hex, remote_address); error = bluetooth_network_disconnect(&addr_hex); + error = _bt_get_error_code(error); if (error != BT_ERROR_NONE) { LOGE("[%s] %s(0x%08x)", __FUNCTION__, _bt_convert_error_to_string(error), error); @@ -125,4 +129,3 @@ int bt_panu_disconnect(const char *remote_address) return error; } - |