Corrected NFC guide
authorJihoon Jung <jh8801.jung@samsung.com>
Mon, 14 Sep 2015 06:23:30 +0000 (15:23 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Mon, 14 Sep 2015 06:24:19 +0000 (15:24 +0900)
Signed-off-by: Ji-hoon Jung <jh8801.jung@samsung.com>
Change-Id: I2bce40192279a5b3de383d4efc0cc51b018ac818

org.tizen.tutorials/html/native/network/nfc_tutorial_n.htm

index 57f97c4..53c4604 100644 (file)
@@ -674,7 +674,7 @@ if (ret != NFC_ERROR_NONE)
 const char[] aid = {0x00, 0x01, 0x02, 0x03};
 bool is_activated_handler = false;
 
-ret = nfc_se_is_activated_handler_for_aid(aid, &amp;is_activated_handler);
+ret = nfc_se_is_activated_handler_for_aid(NFC_SE_TYPE_HCE, aid, &amp;is_activated_handler);
 
 if (ret != NFC_ERROR_NONE)
 {
@@ -694,7 +694,7 @@ else
 &nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;nfc_se_is_activated_handler_for_aid is failed : %d&quot;, ret);
 }
 
-ret = nfc_se_is_activated_handler_for_category(NFC_CARD_EMULATION_CATEGORY_PAYMENT,
+ret = nfc_se_is_activated_handler_for_category(NFC_SE_TYPE_HCE, NFC_CARD_EMULATION_CATEGORY_PAYMENT,
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;is_activated_handler);
 
 if (ret != NFC_ERROR_NONE)
@@ -719,7 +719,7 @@ else
 <pre class="prettyprint">int ret = NFC_ERROR_NONE;
 const char[] aid = {0x0A, 0x0B, 0x0C, 0x0D};
 
-ret = nfc_se_register_aid(NFC_CARD_EMULATION_CATEGORY_OTHER, aid);
+ret = nfc_se_register_aid(NFC_SE_TYPE_HCE, NFC_CARD_EMULATION_CATEGORY_OTHER, aid);
 
 if (ret != NFC_ERROR_NONE)
 {
@@ -728,7 +728,7 @@ if (ret != NFC_ERROR_NONE)
 &nbsp;&nbsp;&nbsp;return false;
 }
 
-ret = nfc_se_unregister_aid(NFC_CARD_EMULATION_CATEGORY_OTHER, aid);
+ret = nfc_se_unregister_aid(NFC_SE_TYPE_HCE, NFC_CARD_EMULATION_CATEGORY_OTHER, aid);
 
 if (ret != NFC_ERROR_NONE)
 {
@@ -744,7 +744,7 @@ if (ret != NFC_ERROR_NONE)
 &nbsp;&nbsp;&nbsp;// Do something
 }
 
-ret = nfc_se_foreach_registered_aids(NFC_CARD_EMULATION_CATEGORY_OTHER, _registered_aid_cb, NULL);
+ret = nfc_se_foreach_registered_aids(NFC_SE_TYPE_HCE, NFC_CARD_EMULATION_CATEGORY_OTHER, _registered_aid_cb, NULL);
 
 if (ret != NFC_ERROR_NONE)
 {