Add internal API for pkgmgr-plugin-nfc package 10/71410/1 accepted/tizen/common/20160525.160346 accepted/tizen/ivi/20160526.003518 accepted/tizen/mobile/20160526.003342 accepted/tizen/tv/20160526.003417 accepted/tizen/wearable/20160526.003444 submit/tizen/20160525.090306
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 25 May 2016 08:45:31 +0000 (17:45 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 25 May 2016 08:46:43 +0000 (17:46 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I4e5311e2f5ceae456383b65298799f7a73c239f4

include/nfc_internal.h
src/nfc_card_emulation.c

index 8b79a81..87d56f7 100755 (executable)
@@ -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
 }
index 5fc245e..8e844f4 100755 (executable)
@@ -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);
+}