2 * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __UG_NFC_SHARE_TAG_H__
19 #define __UG_NFC_SHARE_TAG_H__
23 #endif /* __cplusplus */
25 #include "ug-nfc-share-main.h"
27 /* get and set function */
29 char* ug_nfc_share_get_display_str(void);
30 void ug_nfc_share_set_display_str(const char* text);
32 ug_nfc_share_tag_type ug_nfc_share_get_tag_type(void);
33 void ug_nfc_share_set_tag_type(ug_nfc_share_tag_type tag_type);
34 nfc_ndef_message_h ug_nfc_share_get_current_ndef(void *data);
35 ug_nfc_share_result_e ug_nfc_share_set_current_ndef(void *data, nfc_ndef_message_h ndef_msg);
39 char *ug_nfc_share_get_display_text_from_ndef(ug_nfc_share_tag_type record_type, nfc_ndef_message_h ndef_msg);
41 ug_nfc_share_result_e ug_nfc_share_make_ndef_message_from_file(nfc_ndef_message_h *msg, const char *path);
42 ug_nfc_share_result_e ug_nfc_share_make_ndef_message_from_multi_file(nfc_ndef_message_h *msg, const char *path[], int record_count); /* nfc_handover */
43 void ug_nfc_set_nfc_callback(void *user_data);
44 void ug_nfc_unset_nfc_callback(void);
50 #endif /*__UG_NFC_SHARE_MAIN_H__*/