From 14e024e595e4bc56c43eb5a27933e45ce1e12067 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Tue, 11 Sep 2012 10:01:30 +0900 Subject: Covert the error code to CAPI type Change-Id: I474abeb0dcd9b6595e2c9616e0a81e39ca51489b --- debian/changelog | 8 ++++++++ packaging/capi-network-bluetooth.spec | 2 +- 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 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; } - -- cgit v1.2.3