Covert the error code to CAPI type
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 11 Sep 2012 01:01:30 +0000 (10:01 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 11 Sep 2012 01:01:30 +0000 (10:01 +0900)
Change-Id: I474abeb0dcd9b6595e2c9616e0a81e39ca51489b

debian/changelog
packaging/capi-network-bluetooth.spec
src/bluetooth-pan.c

index a36b115..9931367 100644 (file)
@@ -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
index d0de1aa..9ca276d 100644 (file)
@@ -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
index 3c858a1..2366b92 100644 (file)
@@ -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;
 }
 
-