From 5b418bfc7a3b88b90ef26734a96efb6833866ff8 Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Wed, 25 May 2016 17:45:31 +0900 Subject: [PATCH] Add internal API for pkgmgr-plugin-nfc package Signed-off-by: Jihoon Jung Change-Id: I4e5311e2f5ceae456383b65298799f7a73c239f4 --- include/nfc_internal.h | 4 ++++ src/nfc_card_emulation.c | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/include/nfc_internal.h b/include/nfc_internal.h index 8b79a81..87d56f7 100755 --- a/include/nfc_internal.h +++ b/include/nfc_internal.h @@ -24,6 +24,8 @@ extern "C" { #endif +#define NFC_ERROR_DATA_CONFLICTED -100 + /** * @brief Enumerations for Handover event * @ingroup CAPI_NETWORK_NFC_HANDOVER_MODULE @@ -554,6 +556,8 @@ int nfc_manager_initialize_sync(void); */ int nfc_se_get_registered_aids_count(nfc_se_type_e se_type, nfc_card_emulation_category_type_e category, int *count); +int nfc_se_get_conflict_handlers_internal(const char *package, nfc_card_emulation_category_type_e category, + const char *aid, char ***handlers); #ifdef __cplusplus } diff --git a/src/nfc_card_emulation.c b/src/nfc_card_emulation.c index 5fc245e..8e844f4 100755 --- a/src/nfc_card_emulation.c +++ b/src/nfc_card_emulation.c @@ -502,3 +502,18 @@ int nfc_se_unset_preferred_handler() /* LCOV_EXCL_STOP */ } +int nfc_se_get_conflict_handlers_internal(const char *package, + nfc_card_emulation_category_type_e category, const char *aid, char ***handlers) +{ + net_nfc_error_e result; + + LOG_BEGIN(); + + CHECK_SUPPORTED(NFC_CE_HCE_FEATURE); + CHECK_INIT(); + CHECK_ACTIVATED(); + + result = net_nfc_client_se_get_conflict_handlers_sync(package, category, aid, handlers); + + return nfc_common_convert_error_code(__func__, result); +} -- 2.7.4