Remove build error in Tizen 3.0
[platform/core/connectivity/nfc-manager-neard.git] / client / include / net_nfc_client_util.h
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (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
7  *
8  *                               http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 #ifndef __NET_NFC_SERVER_UTIL_H__
17 #define __NET_NFC_SERVER_UTIL_H__
18
19 #include <aul.h>
20
21 /* For multi-user support */
22 #include <tzplatform_config.h>
23
24 #include "net_nfc_typedef_internal.h"
25
26 #ifndef MESSAGE_STORAGE
27 #define MESSAGE_STORAGE tzplatform_mkpath(TZ_SYS_SHARE, "service/nfc-manager")
28 #endif
29
30 typedef enum
31 {
32         NET_NFC_TASK_START = 0x00,
33         NET_NFC_TASK_END,
34         NET_NFC_TASK_ERROR
35 } net_nfc_sound_type_e;
36
37 void net_nfc_manager_util_play_sound(net_nfc_sound_type_e sound_type);
38
39 net_nfc_error_e net_nfc_app_util_process_ndef(data_s *data);
40 void net_nfc_app_util_aul_launch_app(char* package_name, bundle* kb);
41 void net_nfc_app_util_clean_storage(const char* src_path);
42 int net_nfc_app_util_appsvc_launch(const char *operation, const char *uri, const char *mime, const char *data);
43 int net_nfc_app_util_launch_se_transaction_app(net_nfc_secure_element_type_e se_type,
44                 uint8_t *aid, uint32_t aid_len, uint8_t *param, uint32_t param_len);
45 int net_nfc_app_util_encode_base64(uint8_t *buffer, uint32_t buf_len, char *result, uint32_t max_result);
46 int net_nfc_app_util_decode_base64(const char *buffer, uint32_t buf_len, uint8_t *result, uint32_t *res_len);
47 bool net_nfc_app_util_check_launch_state();
48 pid_t net_nfc_app_util_get_focus_app_pid();
49
50 #endif //__NET_NFC_SERVER_UTIL_H__