From 5e3fd7ef23ba9665e3181a72d633f012c520593d Mon Sep 17 00:00:00 2001 From: Wonkyu Kwon Date: Tue, 8 Oct 2013 10:40:18 +0900 Subject: [PATCH] Add 'result' parameter to all methods Change-Id: Ieeac441ad071426a98fbcfb4f27d5af18d6660c3 --- client/net_nfc_client_tag.c | 8 +++++++- common/net_nfc.xml | 5 ++++- daemon/net_nfc_server_tag.c | 21 +++++++++++++++++---- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/client/net_nfc_client_tag.c b/client/net_nfc_client_tag.c index b1433a0..e958abf 100644 --- a/client/net_nfc_client_tag.c +++ b/client/net_nfc_client_tag.c @@ -227,6 +227,7 @@ static void tag_is_tag_connected(GObject *source_object, if (net_nfc_gdbus_tag_call_is_tag_connected_finish( NET_NFC_GDBUS_TAG(source_object), + &out_result, &out_is_connected, (gint32 *)&out_dev_type, res, @@ -277,6 +278,7 @@ static void tag_get_current_tag_info(GObject *source_object, if (net_nfc_gdbus_tag_call_get_current_tag_info_finish ( NET_NFC_GDBUS_TAG(source_object), + &out_result, &out_is_connected, &out_handle, (gint *)&out_dev_type, @@ -348,6 +350,7 @@ static void tag_get_current_target_handle(GObject *source_object, if (net_nfc_gdbus_tag_call_get_current_target_handle_finish( NET_NFC_GDBUS_TAG(source_object), + &out_result, &out_is_connected, (guint *)&out_handle, (gint *)&out_dev_type, @@ -514,6 +517,7 @@ API net_nfc_error_e net_nfc_client_tag_is_tag_connected_sync( /* try to request target information from server */ if (net_nfc_gdbus_tag_call_is_tag_connected_sync(tag_proxy, net_nfc_client_gdbus_get_privilege(), + &result, &out_is_connected, (gint *)&out_dev_type, NULL, @@ -607,6 +611,7 @@ API net_nfc_error_e net_nfc_client_tag_get_current_tag_info_sync( /* try to request target information from server */ if (net_nfc_gdbus_tag_call_get_current_tag_info_sync(tag_proxy, net_nfc_client_gdbus_get_privilege(), + &result, &out_is_connected, &out_handle, (gint *)&out_dev_type, @@ -716,6 +721,7 @@ API net_nfc_error_e net_nfc_client_tag_get_current_target_handle_sync( if (net_nfc_gdbus_tag_call_get_current_target_handle_sync( tag_proxy, net_nfc_client_gdbus_get_privilege(), + &result, &out_is_connected, &out_handle, (gint *)&out_dev_type, @@ -726,7 +732,7 @@ API net_nfc_error_e net_nfc_client_tag_get_current_target_handle_sync( error->message); g_error_free(error); - return NET_NFC_IPC_FAIL; + return result; } if (out_is_connected == true) { diff --git a/common/net_nfc.xml b/common/net_nfc.xml index 9d3d027..ca6f1ab 100644 --- a/common/net_nfc.xml +++ b/common/net_nfc.xml @@ -37,6 +37,7 @@ --> + @@ -46,6 +47,7 @@ --> + @@ -63,6 +65,7 @@ --> + @@ -329,8 +332,8 @@ - +