Add comments for Function coverage 44/64244/1 submit/tizen/20160331.012826
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 31 Mar 2016 00:49:46 +0000 (09:49 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 31 Mar 2016 01:10:14 +0000 (10:10 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I510517fb66d359260ab28652f06019ea21686ce0

packaging/capi-network-nfc.spec
src/nfc_card_emulation.c [changed mode: 0644->0755]
src/nfc_common.c [changed mode: 0644->0755]
src/nfc_manager.c [changed mode: 0644->0755]
src/nfc_ndef.c [changed mode: 0644->0755]
src/nfc_p2p.c [changed mode: 0644->0755]
src/nfc_p2p_handover.c [changed mode: 0644->0755]
src/nfc_tag.c [changed mode: 0644->0755]

index 666e27a1c5d21b30e7181d8594e92d6263983bf1..248263c6e61b04e2538a13e7c48a8c872ba88737 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-nfc
 Summary:    A NFC library in Native API
-Version:    0.2.2
+Version:    0.2.3
 Release:    0
 Group:      Network & Connectivity/NFC
 License:    Apache-2.0
old mode 100644 (file)
new mode 100755 (executable)
index 96d105a..1cc60c2
@@ -27,6 +27,8 @@ int nfc_se_open_secure_element_internal(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(handle == NULL);
 
@@ -51,6 +53,7 @@ int nfc_se_open_secure_element_internal(
                *handle = (nfc_se_h)temp;
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 
@@ -66,6 +69,8 @@ int nfc_se_send_apdu_internal(nfc_se_h handle,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(handle == NULL);
        CHECK_INVALID(cmd == NULL);
@@ -117,6 +122,7 @@ int nfc_se_send_apdu_internal(nfc_se_h handle,
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 
@@ -128,6 +134,8 @@ int nfc_se_get_atr_internal(nfc_se_h handle, unsigned char **atr, unsigned int *
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(handle == NULL);
        CHECK_INVALID(atr == NULL);
@@ -162,6 +170,7 @@ int nfc_se_get_atr_internal(nfc_se_h handle, unsigned char **atr, unsigned int *
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_close_secure_element_internal(nfc_se_h handle)
@@ -171,12 +180,15 @@ int nfc_se_close_secure_element_internal(nfc_se_h handle)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_close_internal_secure_element_sync(
                (net_nfc_target_handle_h)handle);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_enable_card_emulation()
@@ -186,11 +198,14 @@ int nfc_se_enable_card_emulation()
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_set_card_emulation_mode_sync(NET_NFC_CARD_EMELATION_ENABLE);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_disable_card_emulation()
@@ -200,11 +215,14 @@ int nfc_se_disable_card_emulation()
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_set_card_emulation_mode_sync(NET_NFC_CARD_EMULATION_DISABLE);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_get_card_emulation_mode(nfc_se_card_emulation_mode_type_e *mode)
@@ -215,6 +233,8 @@ int nfc_se_get_card_emulation_mode(nfc_se_card_emulation_mode_type_e *mode)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(mode == NULL);
 
@@ -231,6 +251,7 @@ int nfc_se_get_card_emulation_mode(nfc_se_card_emulation_mode_type_e *mode)
        }
 
        return nfc_common_convert_error_code(__func__, result);;
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_hce_send_apdu_response(nfc_se_h handle, unsigned char *resp, unsigned int resp_len)
@@ -241,6 +262,8 @@ int nfc_hce_send_apdu_response(nfc_se_h handle, unsigned char *resp, unsigned in
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(resp == NULL);
        CHECK_INVALID(resp_len == 0);
@@ -254,6 +277,7 @@ int nfc_hce_send_apdu_response(nfc_se_h handle, unsigned char *resp, unsigned in
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_set_default_route(nfc_se_type_e powered_on_status, nfc_se_type_e powered_off_status, nfc_se_type_e low_battery_status)
@@ -263,11 +287,14 @@ int nfc_se_set_default_route(nfc_se_type_e powered_on_status, nfc_se_type_e powe
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_set_default_route_sync(powered_on_status, powered_off_status, low_battery_status);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_is_activated_handler_for_aid(nfc_se_type_e se_type, const char *aid, bool *is_activated_handler)
@@ -277,6 +304,8 @@ int nfc_se_is_activated_handler_for_aid(nfc_se_type_e se_type, const char *aid,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(aid == NULL);
        CHECK_INVALID(is_activated_handler == NULL);
@@ -284,6 +313,7 @@ int nfc_se_is_activated_handler_for_aid(nfc_se_type_e se_type, const char *aid,
        result = net_nfc_client_se_is_activated_aid_handler_sync((net_nfc_se_type_e)se_type, aid, is_activated_handler);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_is_activated_handler_for_category(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, bool *is_activated_handler)
@@ -293,12 +323,15 @@ int nfc_se_is_activated_handler_for_category(nfc_se_type_e se_type, nfc_card_emu
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(is_activated_handler == NULL);
 
        result = net_nfc_client_se_is_activated_category_handler_sync((net_nfc_se_type_e)se_type, category, is_activated_handler);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_register_aid(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, const char *aid)
@@ -308,12 +341,15 @@ int nfc_se_register_aid(nfc_se_type_e se_type, nfc_card_emulation_category_type_
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(aid == NULL);
 
        result = net_nfc_client_se_register_aids_sync((net_nfc_se_type_e)se_type, category, aid);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_unregister_aid(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, const char *aid)
@@ -323,12 +359,15 @@ int nfc_se_unregister_aid(nfc_se_type_e se_type, nfc_card_emulation_category_typ
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(aid == NULL);
 
        result = net_nfc_client_se_unregister_aid_sync((net_nfc_se_type_e)se_type, category, aid);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_get_registered_aids_count(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, int *count)
@@ -338,6 +377,8 @@ int nfc_se_get_registered_aids_count(nfc_se_type_e se_type, nfc_card_emulation_c
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(count == NULL);
 
@@ -347,8 +388,10 @@ int nfc_se_get_registered_aids_count(nfc_se_type_e se_type, nfc_card_emulation_c
                        (size_t *)count);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _se_registered_aid_event_cb(net_nfc_se_type_e se_type,
                const char *aid, bool readonly, void *user_data)
 {
@@ -362,6 +405,7 @@ static void _se_registered_aid_event_cb(net_nfc_se_type_e se_type,
                        gdbus_nfc_context.on_se_registered_aid_cb_user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_se_foreach_registered_aids(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, nfc_se_registered_aid_cb callback, void *user_data)
 {
@@ -370,6 +414,8 @@ int nfc_se_foreach_registered_aids(nfc_se_type_e se_type, nfc_card_emulation_cat
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -382,6 +428,7 @@ int nfc_se_foreach_registered_aids(nfc_se_type_e se_type, nfc_card_emulation_cat
                user_data);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_add_route_for_aid_internal(const char *aid, nfc_se_type_e se_type, const char* pkg_name, bool unlock_required,
@@ -392,11 +439,14 @@ int nfc_se_add_route_for_aid_internal(const char *aid, nfc_se_type_e se_type, co
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_add_route_aid_sync(pkg_name, se_type, category, aid, unlock_required, power);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_remove_route_for_aid_internal(const char* pkg_name, const char *aid)
@@ -406,11 +456,14 @@ int nfc_se_remove_route_for_aid_internal(const char* pkg_name, const char *aid)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_remove_route_aid_sync(pkg_name, aid);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_set_preferred_handler()
@@ -420,12 +473,15 @@ int nfc_se_set_preferred_handler()
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_ACTIVATED();
 
        result = net_nfc_client_se_set_preferred_handler_sync(true);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_se_unset_preferred_handler()
@@ -435,10 +491,13 @@ int nfc_se_unset_preferred_handler()
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_ACTIVATED();
 
        result = net_nfc_client_se_set_preferred_handler_sync(false);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
\ No newline at end of file
old mode 100644 (file)
new mode 100755 (executable)
index 4e6d79d..3a8a0af
@@ -16,6 +16,7 @@
 
 #include "nfc_common.h"
 
+/* LCOV_EXCL_START */
 pid_t nfc_common_get_focus_app_pid()
 {
 /*
@@ -211,4 +212,5 @@ int nfc_common_get_rawdata_size(nfc_ndef_message_h ndef_message,
 
        return nfc_common_convert_error_code(__func__, ret);
 }
+/* LCOV_EXCL_STOP */
 
old mode 100644 (file)
new mode 100755 (executable)
index e90461d..d5ce1ff
@@ -32,6 +32,7 @@ bool nfc_manager_is_supported(void)
        return nfc_supported;
 }
 
+/* LCOV_EXCL_START */
 static void _activation_changed_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_activation_completed_cb callback;
@@ -54,6 +55,7 @@ static void _activation_changed_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_activation(bool activation,
        nfc_activation_completed_cb callback,
@@ -64,6 +66,8 @@ int nfc_manager_set_activation(bool activation,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        if (nfc_manager_is_activated() == activation) {
@@ -94,6 +98,7 @@ int nfc_manager_set_activation(bool activation,
        }
 
        return ret;
+       /* LCOV_EXCL_STOP */
 }
 
 bool nfc_manager_is_activated(void)
@@ -108,11 +113,13 @@ bool nfc_manager_is_activated(void)
                return false;
        }
 
+       /* LCOV_EXCL_START */
        ret = net_nfc_client_get_nfc_state(&activated);
 
        set_last_result(nfc_common_convert_error_code(__func__, ret));
 
        return (!!activated);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_set_activation_changed_cb(nfc_activation_changed_cb callback,
@@ -121,12 +128,15 @@ int nfc_manager_set_activation_changed_cb(nfc_activation_changed_cb callback,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
        net_nfc_client_manager_set_activated(callback, user_data);
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_activation_changed_cb(void)
@@ -139,6 +149,7 @@ void nfc_manager_unset_activation_changed_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -148,6 +159,7 @@ void nfc_manager_unset_activation_changed_cb(void)
        net_nfc_client_manager_unset_activated();
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_initialize(void)
@@ -158,6 +170,7 @@ int nfc_manager_initialize(void)
 
        CHECK_SUPPORTED(NFC_FEATURE);
 
+       /* LCOV_EXCL_START */
        if (!nfc_common_is_initialized()) {
                ret = net_nfc_client_initialize();
                if (ret != NET_NFC_OK)
@@ -169,6 +182,7 @@ int nfc_manager_initialize(void)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_deinitialize(void)
@@ -179,6 +193,7 @@ int nfc_manager_deinitialize(void)
 
        CHECK_SUPPORTED(NFC_FEATURE);
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized()) {
                net_nfc_client_se_unset_event_cb();
 
@@ -194,8 +209,10 @@ int nfc_manager_deinitialize(void)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _tag_discovered_cb(net_nfc_target_info_h info, void *user_data)
 {
        LOG_BEGIN();
@@ -236,6 +253,7 @@ static void _tag_detached_cb(void *user_data)
 
        gdbus_nfc_context.current_tag = NULL;
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_ndef_discovered_cb(
        nfc_ndef_discovered_cb callback,
@@ -244,6 +262,8 @@ int nfc_manager_set_ndef_discovered_cb(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -254,6 +274,7 @@ int nfc_manager_set_ndef_discovered_cb(
        gdbus_nfc_context.on_ndef_discovered_user_data = user_data;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_ndef_discovered_cb(void)
@@ -266,6 +287,7 @@ void nfc_manager_unset_ndef_discovered_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -276,6 +298,7 @@ void nfc_manager_unset_ndef_discovered_cb(void)
        gdbus_nfc_context.on_ndef_discovered_user_data = NULL;
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_set_tag_filter(int filter)
@@ -288,6 +311,7 @@ void nfc_manager_set_tag_filter(int filter)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -303,6 +327,7 @@ void nfc_manager_set_tag_filter(int filter)
        net_nfc_client_tag_set_filter(filter);
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_get_tag_filter(void)
@@ -315,6 +340,7 @@ int nfc_manager_get_tag_filter(void)
                return 0;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -324,6 +350,7 @@ int nfc_manager_get_tag_filter(void)
        set_last_result(NFC_ERROR_NONE);
 
        return net_nfc_client_tag_get_filter();
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_get_connected_tag(nfc_tag_h *tag)
@@ -334,6 +361,8 @@ int nfc_manager_get_connected_tag(nfc_tag_h *tag)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
 
@@ -355,6 +384,7 @@ int nfc_manager_get_connected_tag(nfc_tag_h *tag)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_get_connected_target(nfc_p2p_target_h *target)
@@ -365,6 +395,8 @@ int nfc_manager_get_connected_target(nfc_p2p_target_h *target)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
 
@@ -388,6 +420,7 @@ int nfc_manager_get_connected_target(nfc_p2p_target_h *target)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_set_tag_discovered_cb(nfc_tag_discovered_cb callback,
@@ -396,6 +429,8 @@ int nfc_manager_set_tag_discovered_cb(nfc_tag_discovered_cb callback,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -406,6 +441,7 @@ int nfc_manager_set_tag_discovered_cb(nfc_tag_discovered_cb callback,
        gdbus_nfc_context.on_tag_discovered_user_data = user_data;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_tag_discovered_cb(void)
@@ -418,6 +454,7 @@ void nfc_manager_unset_tag_discovered_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -428,8 +465,10 @@ void nfc_manager_unset_tag_discovered_cb(void)
        gdbus_nfc_context.on_tag_discovered_user_data = NULL;
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _p2p_discovered_cb(
        net_nfc_target_handle_h handle_info,
        void *user_data)
@@ -465,6 +504,7 @@ static void _p2p_detached_cb(void *user_data)
 
        gdbus_nfc_context.current_target = NULL;
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_p2p_target_discovered_cb(
        nfc_p2p_target_discovered_cb callback,
@@ -473,6 +513,8 @@ int nfc_manager_set_p2p_target_discovered_cb(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -483,6 +525,7 @@ int nfc_manager_set_p2p_target_discovered_cb(
        gdbus_nfc_context.on_p2p_target_discovered_user_data = user_data;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_p2p_target_discovered_cb(void)
@@ -495,6 +538,7 @@ void nfc_manager_unset_p2p_target_discovered_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -505,6 +549,7 @@ void nfc_manager_unset_p2p_target_discovered_cb(void)
        gdbus_nfc_context.on_p2p_target_discovered_user_data = NULL;
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_set_system_handler_enable(bool enable)
@@ -515,6 +560,8 @@ int nfc_manager_set_system_handler_enable(bool enable)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        if (enable == true)
@@ -525,6 +572,7 @@ int nfc_manager_set_system_handler_enable(bool enable)
        ret = net_nfc_client_sys_handler_set_launch_popup_state(state);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_set_system_handler_enable_force(bool enable)
@@ -535,6 +583,8 @@ int nfc_manager_set_system_handler_enable_force(bool enable)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        if (enable == true)
@@ -545,6 +595,7 @@ int nfc_manager_set_system_handler_enable_force(bool enable)
        ret = net_nfc_client_sys_handler_set_launch_popup_state_force(state);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 bool nfc_manager_is_system_handler_enabled(void)
@@ -560,6 +611,7 @@ bool nfc_manager_is_system_handler_enabled(void)
                return false;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -571,6 +623,7 @@ bool nfc_manager_is_system_handler_enabled(void)
        set_last_result(nfc_common_convert_error_code(__func__, ret));
 
        return (state == 0);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_get_cached_message(nfc_ndef_message_h *ndef_message)
@@ -580,14 +633,18 @@ int nfc_manager_get_cached_message(nfc_ndef_message_h *ndef_message)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
 
        ret = net_nfc_retrieve_current_ndef_message(ndef_message);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _se_event_cb(net_nfc_message_e message, void *user_data)
 {
        LOG_BEGIN();
@@ -608,12 +665,15 @@ static void _se_event_cb(net_nfc_message_e message, void *user_data)
                                gdbus_nfc_context.on_se_event_user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_se_event_cb(nfc_se_event_cb callback, void *user_data)
 {
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -623,6 +683,7 @@ int nfc_manager_set_se_event_cb(nfc_se_event_cb callback, void *user_data)
        gdbus_nfc_context.on_se_event_user_data = user_data;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_se_event_cb(void)
@@ -635,6 +696,7 @@ void nfc_manager_unset_se_event_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -645,8 +707,10 @@ void nfc_manager_unset_se_event_cb(void)
        gdbus_nfc_context.on_se_event_user_data = NULL;
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _se_transaction_event_cb(net_nfc_se_type_e se_type, data_h aid,
        data_h param, void *user_data)
 {
@@ -662,6 +726,7 @@ static void _se_transaction_event_cb(net_nfc_se_type_e se_type, data_h aid,
                        gdbus_nfc_context.on_se_transaction_event_user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_se_transaction_event_cb(
        nfc_se_type_e se_type,
@@ -673,6 +738,8 @@ int nfc_manager_set_se_transaction_event_cb(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -698,6 +765,7 @@ int nfc_manager_set_se_transaction_event_cb(
        net_nfc_client_se_set_transaction_event_cb(type, _se_transaction_event_cb, user_data);
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_se_transaction_event_cb(nfc_se_type_e se_type)
@@ -712,6 +780,7 @@ void nfc_manager_unset_se_transaction_event_cb(nfc_se_type_e se_type)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -734,6 +803,7 @@ void nfc_manager_unset_se_transaction_event_cb(nfc_se_type_e se_type)
        net_nfc_client_se_unset_transaction_event_cb(type);
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_enable_transaction_fg_dispatch()
@@ -743,11 +813,14 @@ int nfc_manager_enable_transaction_fg_dispatch()
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_set_transaction_fg_dispatch(true);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_disable_transaction_fg_dispatch()
@@ -755,11 +828,14 @@ int nfc_manager_disable_transaction_fg_dispatch()
        net_nfc_error_e result;
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_se_set_transaction_fg_dispatch(false);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_set_se_type(nfc_se_type_e type)
@@ -770,6 +846,8 @@ int nfc_manager_set_se_type(nfc_se_type_e type)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(type < NFC_SE_TYPE_DISABLE);
        CHECK_INVALID(type > NFC_SE_TYPE_HCE);
@@ -792,6 +870,7 @@ int nfc_manager_set_se_type(nfc_se_type_e type)
        ret = net_nfc_client_se_set_secure_element_type_sync(se_type);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_manager_get_se_type(nfc_se_type_e *type)
@@ -802,6 +881,8 @@ int nfc_manager_get_se_type(nfc_se_type_e *type)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(type == NULL);
 
@@ -823,8 +904,10 @@ int nfc_manager_get_se_type(nfc_se_type_e *type)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _hce_event_cb(net_nfc_target_handle_h handle,
                net_nfc_hce_event_t event, data_h apdu, void *user_data)
 {
@@ -839,6 +922,7 @@ static void _hce_event_cb(net_nfc_target_handle_h handle,
                        gdbus_nfc_context.on_hce_event_user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_manager_set_hce_event_cb(nfc_hce_event_cb callback, void *user_data)
 {
@@ -846,6 +930,8 @@ int nfc_manager_set_hce_event_cb(nfc_hce_event_cb callback, void *user_data)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_CE_HCE_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -855,6 +941,7 @@ int nfc_manager_set_hce_event_cb(nfc_hce_event_cb callback, void *user_data)
        result = net_nfc_client_hce_set_event_received_cb(_hce_event_cb, user_data);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 void nfc_manager_unset_hce_event_cb(void)
@@ -867,6 +954,7 @@ void nfc_manager_unset_hce_event_cb(void)
                return;
        }
 
+       /* LCOV_EXCL_START */
        if (nfc_common_is_initialized() == false) {
                LOG_ERR("NFC not initialized");
                set_last_result(NFC_ERROR_NOT_INITIALIZED);
@@ -876,5 +964,6 @@ void nfc_manager_unset_hce_event_cb(void)
        net_nfc_client_hce_unset_event_received_cb();
 
        set_last_result(NFC_ERROR_NONE);
+       /* LCOV_EXCL_STOP */
 }
 
old mode 100644 (file)
new mode 100755 (executable)
index c6ede9c..f92f320
@@ -33,6 +33,8 @@ int nfc_ndef_record_create(nfc_ndef_record_h *record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
 
@@ -60,6 +62,7 @@ int nfc_ndef_record_create(nfc_ndef_record_h *record,
        net_nfc_free_data(type_data);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 
@@ -73,6 +76,8 @@ int nfc_ndef_record_create_text(nfc_ndef_record_h *record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(text == NULL);
@@ -85,6 +90,7 @@ int nfc_ndef_record_create_text(nfc_ndef_record_h *record,
                encode);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_create_uri(nfc_ndef_record_h *record,
@@ -95,6 +101,8 @@ int nfc_ndef_record_create_uri(nfc_ndef_record_h *record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(uri == NULL);
@@ -105,6 +113,7 @@ int nfc_ndef_record_create_uri(nfc_ndef_record_h *record,
                NET_NFC_SCHEMA_FULL_URI);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_create_mime(nfc_ndef_record_h *record,
@@ -117,6 +126,8 @@ int nfc_ndef_record_create_mime(nfc_ndef_record_h *record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(mime_type == NULL);
@@ -133,6 +144,7 @@ int nfc_ndef_record_create_mime(nfc_ndef_record_h *record,
                data_size);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_mime_type(nfc_ndef_record_h record,
@@ -146,6 +158,8 @@ int nfc_ndef_record_get_mime_type(nfc_ndef_record_h record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(mime_type == NULL);
@@ -165,6 +179,7 @@ int nfc_ndef_record_get_mime_type(nfc_ndef_record_h record,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_destroy(nfc_ndef_record_h record)
@@ -174,12 +189,15 @@ int nfc_ndef_record_destroy(nfc_ndef_record_h record)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
 
        ret = net_nfc_free_record(record);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_set_id(nfc_ndef_record_h record,
@@ -192,6 +210,8 @@ int nfc_ndef_record_set_id(nfc_ndef_record_h record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(id == NULL);
@@ -206,6 +226,7 @@ int nfc_ndef_record_set_id(nfc_ndef_record_h record,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_payload(nfc_ndef_record_h record,
@@ -218,6 +239,8 @@ int nfc_ndef_record_get_payload(nfc_ndef_record_h record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(payload == NULL);
@@ -236,6 +259,7 @@ int nfc_ndef_record_get_payload(nfc_ndef_record_h record,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_type(nfc_ndef_record_h record,
@@ -248,6 +272,8 @@ int nfc_ndef_record_get_type(nfc_ndef_record_h record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(type == NULL);
@@ -266,6 +292,7 @@ int nfc_ndef_record_get_type(nfc_ndef_record_h record,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_id(nfc_ndef_record_h record,
@@ -278,6 +305,8 @@ int nfc_ndef_record_get_id(nfc_ndef_record_h record,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(id == NULL);
@@ -296,6 +325,7 @@ int nfc_ndef_record_get_id(nfc_ndef_record_h record,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_tnf(nfc_ndef_record_h record, nfc_record_tnf_e *tnf)
@@ -305,6 +335,8 @@ int nfc_ndef_record_get_tnf(nfc_ndef_record_h record, nfc_record_tnf_e *tnf)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(tnf == NULL);
@@ -312,6 +344,7 @@ int nfc_ndef_record_get_tnf(nfc_ndef_record_h record, nfc_record_tnf_e *tnf)
        ret = net_nfc_get_record_tnf(record, (net_nfc_record_tnf_e *)tnf);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_text(nfc_ndef_record_h record, char **buffer)
@@ -323,6 +356,8 @@ int nfc_ndef_record_get_text(nfc_ndef_record_h record, char **buffer)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(buffer == NULL);
@@ -339,6 +374,7 @@ int nfc_ndef_record_get_text(nfc_ndef_record_h record, char **buffer)
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_langcode(nfc_ndef_record_h record, char **lang_code)
@@ -348,6 +384,8 @@ int nfc_ndef_record_get_langcode(nfc_ndef_record_h record, char **lang_code)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(lang_code == NULL);
@@ -355,6 +393,7 @@ int nfc_ndef_record_get_langcode(nfc_ndef_record_h record, char **lang_code)
        ret = net_nfc_get_languange_code_string_from_text_record(record, lang_code);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_encode_type(
@@ -366,6 +405,8 @@ int nfc_ndef_record_get_encode_type(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(encode == NULL);
@@ -378,6 +419,7 @@ int nfc_ndef_record_get_encode_type(
         LOGE("%s reord type is not text type");*/
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_record_get_uri(nfc_ndef_record_h record, char **uri)
@@ -387,6 +429,8 @@ int nfc_ndef_record_get_uri(nfc_ndef_record_h record, char **uri)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(record == NULL);
        CHECK_INVALID(uri == NULL);
@@ -394,6 +438,7 @@ int nfc_ndef_record_get_uri(nfc_ndef_record_h record, char **uri)
        ret = net_nfc_create_uri_string_from_uri_record(record, uri);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_create(nfc_ndef_message_h *ndef_message)
@@ -403,12 +448,15 @@ int nfc_ndef_message_create(nfc_ndef_message_h *ndef_message)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
 
        ret = net_nfc_create_ndef_message(ndef_message);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_create_from_rawdata(
@@ -422,6 +470,8 @@ int nfc_ndef_message_create_from_rawdata(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(rawdata == NULL);
@@ -439,6 +489,7 @@ int nfc_ndef_message_create_from_rawdata(
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_destroy(nfc_ndef_message_h ndef_message)
@@ -448,12 +499,15 @@ int nfc_ndef_message_destroy(nfc_ndef_message_h ndef_message)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
 
        ret = net_nfc_free_ndef_message(ndef_message);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_get_record_count(nfc_ndef_message_h ndef_message,
@@ -464,6 +518,8 @@ int nfc_ndef_message_get_record_count(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(count == NULL);
@@ -471,6 +527,7 @@ int nfc_ndef_message_get_record_count(nfc_ndef_message_h ndef_message,
        ret = net_nfc_get_ndef_message_record_count(ndef_message, count);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_get_rawdata(nfc_ndef_message_h ndef_message,
@@ -483,6 +540,8 @@ int nfc_ndef_message_get_rawdata(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(rawdata == NULL);
@@ -512,6 +571,7 @@ int nfc_ndef_message_get_rawdata(nfc_ndef_message_h ndef_message,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_append_record(nfc_ndef_message_h ndef_message,
@@ -522,6 +582,8 @@ int nfc_ndef_message_append_record(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(record == NULL);
@@ -529,6 +591,7 @@ int nfc_ndef_message_append_record(nfc_ndef_message_h ndef_message,
        ret = net_nfc_append_record_to_ndef_message(ndef_message, record);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_insert_record(nfc_ndef_message_h ndef_message,
@@ -540,6 +603,8 @@ int nfc_ndef_message_insert_record(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(record == NULL);
@@ -547,6 +612,7 @@ int nfc_ndef_message_insert_record(nfc_ndef_message_h ndef_message,
        ret = net_nfc_append_record_by_index(ndef_message, index, record);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_remove_record(nfc_ndef_message_h ndef_message,
@@ -557,12 +623,15 @@ int nfc_ndef_message_remove_record(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
 
        ret = net_nfc_remove_record_by_index(ndef_message, index);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_ndef_message_get_record(nfc_ndef_message_h ndef_message,
@@ -574,6 +643,8 @@ int nfc_ndef_message_get_record(nfc_ndef_message_h ndef_message,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(ndef_message == NULL);
        CHECK_INVALID(record == NULL);
@@ -583,5 +654,6 @@ int nfc_ndef_message_get_record(nfc_ndef_message_h ndef_message,
                (ndef_record_h*)record);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
old mode 100644 (file)
new mode 100755 (executable)
index eccde2a..76758b8
@@ -16,6 +16,7 @@
 
 #include "nfc_common.h"
 
+/* LCOV_EXCL_START */
 static void _p2p_send_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_p2p_send_completed_cb callback;
@@ -36,6 +37,7 @@ static void _p2p_send_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_p2p_send(nfc_p2p_target_h target,
        nfc_ndef_message_h message,
@@ -49,6 +51,8 @@ int nfc_p2p_send(nfc_p2p_target_h target,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
        CHECK_INVALID(target == NULL);
@@ -73,6 +77,7 @@ int nfc_p2p_send(nfc_p2p_target_h target,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_p2p_send_no_permission(
@@ -88,6 +93,8 @@ int nfc_p2p_send_no_permission(
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
        CHECK_INVALID(message == NULL);
@@ -113,8 +120,10 @@ int nfc_p2p_send_no_permission(
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _p2p_set_data_received_cb(data_h data, void *user_data)
 {
        LOG_BEGIN();
@@ -132,6 +141,7 @@ static void _p2p_set_data_received_cb(data_h data, void *user_data)
                net_nfc_free_ndef_message(ndef_message);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_p2p_set_data_received_cb(nfc_p2p_target_h target,
        nfc_p2p_data_received_cb callback,
@@ -140,6 +150,8 @@ int nfc_p2p_set_data_received_cb(nfc_p2p_target_h target,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
        CHECK_INVALID(callback == NULL);
@@ -151,6 +163,7 @@ int nfc_p2p_set_data_received_cb(nfc_p2p_target_h target,
        net_nfc_client_p2p_set_data_received(_p2p_set_data_received_cb, NULL);
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_p2p_unset_data_received_cb(nfc_p2p_target_h target)
@@ -158,6 +171,8 @@ int nfc_p2p_unset_data_received_cb(nfc_p2p_target_h target)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
        CHECK_INVALID(gdbus_nfc_context.current_target != target);
@@ -168,8 +183,10 @@ int nfc_p2p_unset_data_received_cb(nfc_p2p_target_h target)
        gdbus_nfc_context.on_p2p_recv_user_data = NULL;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _snep_start_server_cb(
        net_nfc_snep_handle_h arg_handle,
        net_nfc_snep_type_t event,
@@ -230,6 +247,7 @@ static void _snep_start_server_cb(
                        g_variant_unref(user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_snep_start_server(nfc_p2p_target_h target,
        const char *san,
@@ -243,6 +261,8 @@ int nfc_snep_start_server(nfc_p2p_target_h target,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
 
@@ -263,8 +283,10 @@ int nfc_snep_start_server(nfc_p2p_target_h target,
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _snep_start_client_cb(net_nfc_snep_handle_h arg_handle,
        net_nfc_snep_type_t event,
        net_nfc_error_e result,
@@ -324,6 +346,7 @@ static void _snep_start_client_cb(net_nfc_snep_handle_h arg_handle,
                        g_variant_unref(user_data);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_snep_start_client(nfc_p2p_target_h target,
        const char *san,
@@ -337,6 +360,8 @@ int nfc_snep_start_client(nfc_p2p_target_h target,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
 
@@ -357,8 +382,10 @@ int nfc_snep_start_client(nfc_p2p_target_h target,
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _snep_send_request_cb(net_nfc_snep_handle_h target,
        net_nfc_snep_type_t event, net_nfc_error_e result, ndef_message_h msg, void *user_data)
 {
@@ -387,6 +414,7 @@ static void _snep_send_request_cb(net_nfc_snep_handle_h target,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_snep_send_client_request(nfc_p2p_snep_h handle,
        nfc_snep_type_e type,
@@ -400,6 +428,8 @@ int nfc_snep_send_client_request(nfc_p2p_snep_h handle,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(handle == NULL);
        CHECK_INVALID(msg == NULL);
@@ -421,8 +451,10 @@ int nfc_snep_send_client_request(nfc_p2p_snep_h handle,
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _snep_event_cb(net_nfc_snep_handle_h target, net_nfc_snep_type_t event,
        net_nfc_error_e result, ndef_message_h msg, void *user_data)
 {
@@ -473,6 +505,7 @@ static void _snep_event_cb(net_nfc_snep_handle_h target, net_nfc_snep_type_t eve
                        (ndef_message_h)msg, user_param);
        }
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_snep_register_server(const char *san, int sap,
        nfc_snep_event_cb callback, void *user_data)
@@ -483,6 +516,8 @@ int nfc_snep_register_server(const char *san, int sap,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(san == NULL);
        CHECK_INVALID(sap == 0);
@@ -500,6 +535,7 @@ int nfc_snep_register_server(const char *san, int sap,
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_snep_unregister_server(const char *san, int sap)
@@ -509,11 +545,14 @@ int nfc_snep_unregister_server(const char *san, int sap)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_snep_unregister_server(san, (sap_t)sap);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_snep_stop_service(nfc_p2p_target_h target, nfc_p2p_snep_h clients)
@@ -523,10 +562,13 @@ int nfc_snep_stop_service(nfc_p2p_target_h target, nfc_p2p_snep_h clients)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        result = net_nfc_client_snep_stop_service_sync(target, clients);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
old mode 100644 (file)
new mode 100755 (executable)
index 0c5e48d..fce373c
@@ -16,6 +16,7 @@
 
 #include "nfc_common.h"
 
+/* LCOV_EXCL_START */
 static void _p2p_handover_cb(net_nfc_error_e result,
        net_nfc_conn_handover_carrier_type_e carrier, data_h ac_data, void *user_data)
 {
@@ -76,6 +77,7 @@ static void _p2p_handover_cb(net_nfc_error_e result,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_p2p_connection_handover(nfc_p2p_target_h target,
        nfc_ac_type_e type,
@@ -90,6 +92,8 @@ int nfc_p2p_connection_handover(nfc_p2p_target_h target,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(target == NULL);
        CHECK_INVALID(type > NFC_AC_TYPE_UNKNOWN);
@@ -132,8 +136,10 @@ int nfc_p2p_connection_handover(nfc_p2p_target_h target,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _connection_handover_event_cb(
        net_nfc_handover_event_e event,
        net_nfc_error_e result,
@@ -193,12 +199,15 @@ static void _connection_handover_event_cb(
 
        LOG_END();
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_connection_handover_set_event_cb(nfc_connection_handover_event_cb callback, void *user_data)
 {
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(callback == NULL);
 
@@ -208,6 +217,7 @@ int nfc_connection_handover_set_event_cb(nfc_connection_handover_event_cb callba
        net_nfc_client_handover_set_handover_event_cb(_connection_handover_event_cb, NULL);
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_connection_handover_unset_event_cb(void)
@@ -215,6 +225,8 @@ int nfc_connection_handover_unset_event_cb(void)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
 
        net_nfc_client_handover_unset_handover_event_cb();
@@ -223,6 +235,7 @@ int nfc_connection_handover_unset_event_cb(void)
        gdbus_nfc_context.on_handover_event_user_data = NULL;
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 bool nfc_p2p_is_supported_ac_type(nfc_ac_type_e carrier)
@@ -244,6 +257,8 @@ int nfc_handover_message_import_from_ndef_message(nfc_handover_message_h *result
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(msg == NULL);
        CHECK_INVALID(result == NULL);
@@ -252,6 +267,7 @@ int nfc_handover_message_import_from_ndef_message(nfc_handover_message_h *result
                (ndef_message_h)msg, (net_nfc_ch_message_h *)result);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_message_get_random_number(nfc_handover_message_h message, unsigned short *random_number)
@@ -261,6 +277,8 @@ int nfc_handover_message_get_random_number(nfc_handover_message_h message, unsig
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
        CHECK_INVALID(random_number == NULL);
@@ -270,6 +288,7 @@ int nfc_handover_message_get_random_number(nfc_handover_message_h message, unsig
                random_number);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_message_get_carrier_count(nfc_handover_message_h message, unsigned int *count)
@@ -279,6 +298,8 @@ int nfc_handover_message_get_carrier_count(nfc_handover_message_h message, unsig
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
        CHECK_INVALID(count == NULL);
@@ -288,6 +309,7 @@ int nfc_handover_message_get_carrier_count(nfc_handover_message_h message, unsig
                count);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_message_get_carrier(nfc_handover_message_h message, int index, nfc_handover_carrier_h *carrier)
@@ -297,6 +319,8 @@ int nfc_handover_message_get_carrier(nfc_handover_message_h message, int index,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
        CHECK_INVALID(carrier == NULL);
@@ -307,6 +331,7 @@ int nfc_handover_message_get_carrier(nfc_handover_message_h message, int index,
                (net_nfc_ch_carrier_h *)carrier);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_message_get_carrier_by_type(nfc_handover_message_h message, nfc_ac_type_e type, nfc_handover_carrier_h *carrier)
@@ -317,6 +342,8 @@ int nfc_handover_message_get_carrier_by_type(nfc_handover_message_h message, nfc
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
        CHECK_INVALID(carrier == NULL);
@@ -344,6 +371,7 @@ int nfc_handover_message_get_carrier_by_type(nfc_handover_message_h message, nfc
                (net_nfc_ch_carrier_h *)carrier);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_message_destroy(nfc_handover_message_h message)
@@ -353,12 +381,15 @@ int nfc_handover_message_destroy(nfc_handover_message_h message)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(message == NULL);
 
        result = net_nfc_free_handover_message((net_nfc_ch_message_h)message);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 
@@ -370,6 +401,8 @@ int nfc_handover_carrier_get_cps(nfc_handover_carrier_h carrier, nfc_ac_state_e
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(cps == NULL);
@@ -397,6 +430,7 @@ int nfc_handover_carrier_get_cps(nfc_handover_carrier_h carrier, nfc_ac_state_e
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_get_type(nfc_handover_carrier_h carrier, nfc_ac_type_e *type)
@@ -407,6 +441,8 @@ int nfc_handover_carrier_get_type(nfc_handover_carrier_h carrier, nfc_ac_type_e
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(type == NULL);
@@ -434,6 +470,7 @@ int nfc_handover_carrier_get_type(nfc_handover_carrier_h carrier, nfc_ac_type_e
        }
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_get_carrier_record(nfc_handover_carrier_h carrier, nfc_ndef_record_h *record)
@@ -443,6 +480,8 @@ int nfc_handover_carrier_get_carrier_record(nfc_handover_carrier_h carrier, nfc_
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(record == NULL);
@@ -451,6 +490,7 @@ int nfc_handover_carrier_get_carrier_record(nfc_handover_carrier_h carrier, nfc_
                (net_nfc_ch_carrier_h)carrier, (ndef_record_h *)record);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_get_auxiliary_record_count(nfc_handover_carrier_h carrier, unsigned int *count)
@@ -460,6 +500,8 @@ int nfc_handover_carrier_get_auxiliary_record_count(nfc_handover_carrier_h carri
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(count == NULL);
@@ -468,6 +510,7 @@ int nfc_handover_carrier_get_auxiliary_record_count(nfc_handover_carrier_h carri
                (net_nfc_ch_carrier_h)carrier, count);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_get_auxiliary_record(nfc_handover_carrier_h carrier, int index, nfc_ndef_record_h *record)
@@ -477,6 +520,8 @@ int nfc_handover_carrier_get_auxiliary_record(nfc_handover_carrier_h carrier, in
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(record == NULL);
@@ -486,6 +531,7 @@ int nfc_handover_carrier_get_auxiliary_record(nfc_handover_carrier_h carrier, in
                index, (ndef_record_h *)record);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_get_handover_config(nfc_handover_carrier_h carrier, nfc_handover_config_h *config)
@@ -495,6 +541,8 @@ int nfc_handover_carrier_get_handover_config(nfc_handover_carrier_h carrier, nfc
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
        CHECK_INVALID(config == NULL);
@@ -504,6 +552,7 @@ int nfc_handover_carrier_get_handover_config(nfc_handover_carrier_h carrier, nfc
                (net_nfc_ch_carrier_h)carrier);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_carrier_destroy(nfc_handover_carrier_h carrier)
@@ -513,12 +562,15 @@ int nfc_handover_carrier_destroy(nfc_handover_carrier_h carrier)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(carrier == NULL);
 
        result = net_nfc_free_handover_carrier((net_nfc_ch_carrier_h)carrier);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 
@@ -529,6 +581,8 @@ int nfc_handover_config_get_property(nfc_handover_config_h config, unsigned shor
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(config == NULL);
        CHECK_INVALID(size == NULL);
@@ -539,6 +593,7 @@ int nfc_handover_config_get_property(nfc_handover_config_h config, unsigned shor
                attribute, size, data);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_handover_config_destroy(nfc_handover_config_h config)
@@ -548,11 +603,14 @@ int nfc_handover_config_destroy(nfc_handover_config_h config)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_P2P_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(config == NULL);
 
        result = net_nfc_free_carrier_config((net_nfc_carrier_config_h)config);
 
        return nfc_common_convert_error_code(__func__, result);
+       /* LCOV_EXCL_STOP */
 }
 
old mode 100644 (file)
new mode 100755 (executable)
index 8f0782c..5fb2004
@@ -16,6 +16,7 @@
 
 #include "nfc_common.h"
 
+/* LCOV_EXCL_START */
 static void _tag_format_ndef_cb(net_nfc_error_e result,
        void *user_data)
 {
@@ -41,6 +42,7 @@ static void _tag_format_ndef_cb(net_nfc_error_e result,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_tag_format_ndef(nfc_tag_h tag,
        unsigned char *key,
@@ -54,6 +56,8 @@ int nfc_tag_format_ndef(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -92,8 +96,10 @@ int nfc_tag_format_ndef(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _tag_read_ndef_cb(net_nfc_error_e result, ndef_message_h message,
        void *user_data)
 {
@@ -120,6 +126,7 @@ static void _tag_read_ndef_cb(net_nfc_error_e result, ndef_message_h message,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_tag_read_ndef(nfc_tag_h tag,
        nfc_tag_read_completed_cb callback,
@@ -129,6 +136,8 @@ int nfc_tag_read_ndef(nfc_tag_h tag,
        net_nfc_target_handle_h handle = NULL;
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -155,8 +164,10 @@ int nfc_tag_read_ndef(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _tag_write_ndef_cb(net_nfc_error_e result,
        void *user_data)
 {
@@ -180,6 +191,7 @@ static void _tag_write_ndef_cb(net_nfc_error_e result,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_tag_write_ndef(nfc_tag_h tag,
        nfc_ndef_message_h msg,
@@ -193,6 +205,8 @@ int nfc_tag_write_ndef(nfc_tag_h tag,
        net_nfc_ndef_card_state_e state = NET_NFC_NDEF_CARD_INVALID;
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -245,8 +259,10 @@ int nfc_tag_write_ndef(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _tag_transceive_data_cb(net_nfc_error_e result, data_h arg_data,
        void *user_data)
 {
@@ -280,6 +296,7 @@ static void _tag_transceive_data_cb(net_nfc_error_e result, data_h arg_data,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_tag_transceive(nfc_tag_h tag,
        unsigned char *buffer,
@@ -291,6 +308,8 @@ int nfc_tag_transceive(nfc_tag_h tag,
        data_h rawdata = NULL;
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(buffer == NULL);
@@ -330,6 +349,7 @@ int nfc_tag_transceive(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_tag_get_type(nfc_tag_h tag, nfc_tag_type_e *type)
@@ -339,6 +359,8 @@ int nfc_tag_get_type(nfc_tag_h tag, nfc_tag_type_e *type)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(type == NULL);
@@ -346,6 +368,7 @@ int nfc_tag_get_type(nfc_tag_h tag, nfc_tag_type_e *type)
        ret = net_nfc_get_tag_type(tag, (net_nfc_target_type_e *)type);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_tag_is_support_ndef(nfc_tag_h tag, bool *is_support)
@@ -355,6 +378,8 @@ int nfc_tag_is_support_ndef(nfc_tag_h tag, bool *is_support)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(is_support == NULL);
@@ -362,6 +387,7 @@ int nfc_tag_is_support_ndef(nfc_tag_h tag, bool *is_support)
        ret = net_nfc_get_tag_ndef_support(tag, is_support);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_tag_get_maximum_ndef_size(nfc_tag_h tag, unsigned int *max_size)
@@ -370,6 +396,8 @@ int nfc_tag_get_maximum_ndef_size(nfc_tag_h tag, unsigned int *max_size)
 
        LOG_BEGIN();
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(max_size == NULL);
@@ -377,6 +405,7 @@ int nfc_tag_get_maximum_ndef_size(nfc_tag_h tag, unsigned int *max_size)
        ret = net_nfc_get_tag_max_data_size(tag, max_size);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_tag_get_ndef_size(nfc_tag_h tag, unsigned int *actual_data_size)
@@ -386,6 +415,8 @@ int nfc_tag_get_ndef_size(nfc_tag_h tag, unsigned int *actual_data_size)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(actual_data_size == NULL);
@@ -393,6 +424,7 @@ int nfc_tag_get_ndef_size(nfc_tag_h tag, unsigned int *actual_data_size)
        ret = net_nfc_get_tag_actual_data_size(tag, actual_data_size);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_tag_foreach_information(nfc_tag_h tag,
@@ -408,6 +440,8 @@ int nfc_tag_foreach_information(nfc_tag_h tag,
 
        LOG_BEGIN();
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(callback == NULL);
@@ -432,9 +466,11 @@ int nfc_tag_foreach_information(nfc_tag_h tag,
        }
 
        return NFC_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
 /* FIXME */
+/* LCOV_EXCL_START */
 static void _mifare_authenticate_with_keyA_cb(net_nfc_error_e result,
        void *user_data)
 {
@@ -458,6 +494,7 @@ static void _mifare_authenticate_with_keyA_cb(net_nfc_error_e result,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_authenticate_with_keyA(nfc_tag_h tag,
        int sector_index,
@@ -469,6 +506,8 @@ int nfc_mifare_authenticate_with_keyA(nfc_tag_h tag,
        data_h auth_key_data = NULL;
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(auth_key == NULL);
@@ -507,9 +546,11 @@ int nfc_mifare_authenticate_with_keyA(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 
+/* LCOV_EXCL_START */
 static void _mifare_authenticate_with_keyB_cb(net_nfc_error_e result,
        void *user_data)
 {
@@ -531,6 +572,7 @@ static void _mifare_authenticate_with_keyB_cb(net_nfc_error_e result,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_authenticate_with_keyB(nfc_tag_h tag,
        int sector_index,
@@ -544,6 +586,8 @@ int nfc_mifare_authenticate_with_keyB(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(auth_key == NULL);
@@ -582,9 +626,11 @@ int nfc_mifare_authenticate_with_keyB(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 /* FIXME */
+/* LCOV_EXCL_START */
 static void _mifare_read_block_cb(net_nfc_error_e result, data_h data,
        void *user_data)
 {
@@ -618,6 +664,7 @@ static void _mifare_read_block_cb(net_nfc_error_e result, data_h data,
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_read_block(nfc_tag_h tag,
        int block_index,
@@ -630,6 +677,8 @@ int nfc_mifare_read_block(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
 
@@ -656,6 +705,7 @@ int nfc_mifare_read_block(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_mifare_read_page(nfc_tag_h tag,
@@ -669,6 +719,8 @@ int nfc_mifare_read_page(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
 
@@ -683,8 +735,10 @@ int nfc_mifare_read_page(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_write_block_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_write_block_completed_cb callback;
@@ -707,6 +761,7 @@ static void _mifare_write_block_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_write_block(nfc_tag_h tag,
        int block_index,
@@ -721,6 +776,8 @@ int nfc_mifare_write_block(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(buffer == NULL);
@@ -761,8 +818,10 @@ int nfc_mifare_write_block(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_write_page_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_write_page_completed_cb callback;
@@ -785,6 +844,7 @@ static void _mifare_write_page_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_write_page(nfc_tag_h tag,
        int page_index,
@@ -798,6 +858,8 @@ int nfc_mifare_write_page(nfc_tag_h tag,
 
        LOG_BEGIN();
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_INVALID(buffer == NULL);
@@ -838,8 +900,10 @@ int nfc_mifare_write_page(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_increment_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_increment_completed_cb callback;
@@ -862,6 +926,7 @@ static void _mifare_increment_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_increment(nfc_tag_h tag,
        int block_index,
@@ -875,6 +940,8 @@ int nfc_mifare_increment(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -903,8 +970,10 @@ int nfc_mifare_increment(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_decrement_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_decrement_completed_cb callback;
@@ -927,6 +996,7 @@ static void _mifare_decrement_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_decrement(nfc_tag_h tag,
        int block_index,
@@ -940,6 +1010,8 @@ int nfc_mifare_decrement(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -968,8 +1040,10 @@ int nfc_mifare_decrement(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_transfer_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_transfer_completed_cb callback;
@@ -992,6 +1066,7 @@ static void _mifare_transfer_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_transfer(nfc_tag_h tag,
        int block_index,
@@ -1004,6 +1079,8 @@ int nfc_mifare_transfer(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -1031,8 +1108,10 @@ int nfc_mifare_transfer(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 static void _mifare_restore_cb(net_nfc_error_e result, void *user_data)
 {
        nfc_mifare_restore_completed_cb callback;
@@ -1055,6 +1134,7 @@ static void _mifare_restore_cb(net_nfc_error_e result, void *user_data)
 
        g_variant_unref((GVariant *)user_data);
 }
+/* LCOV_EXCL_STOP */
 
 int nfc_mifare_restore(nfc_tag_h tag,
        int block_index,
@@ -1067,6 +1147,8 @@ int nfc_mifare_restore(nfc_tag_h tag,
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(tag == NULL);
        CHECK_ACTIVATED();
@@ -1094,6 +1176,7 @@ int nfc_mifare_restore(nfc_tag_h tag,
        }
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }
 
 int nfc_barcode_get_barcode(unsigned char **barcode, int *barcode_len)
@@ -1103,6 +1186,8 @@ int nfc_barcode_get_barcode(unsigned char **barcode, int *barcode_len)
        LOG_BEGIN();
 
        CHECK_SUPPORTED(NFC_TAG_FEATURE);
+
+       /* LCOV_EXCL_START */
        CHECK_INIT();
        CHECK_INVALID(barcode == NULL);
        CHECK_INVALID(barcode_len == NULL);
@@ -1112,4 +1197,5 @@ int nfc_barcode_get_barcode(unsigned char **barcode, int *barcode_len)
        ret = net_nfc_client_barcode_get_barcode_sync(barcode, barcode_len);
 
        return nfc_common_convert_error_code(__func__, ret);
+       /* LCOV_EXCL_STOP */
 }