Remove build error in Tizen 3.0
[platform/core/connectivity/nfc-manager-neard.git] / daemon / net_nfc_server_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
17 #ifndef __NET_NFC_SERVER_UTIL_H__
18 #define __NET_NFC_SERVER_UTIL_H__
19
20 #include <aul.h>
21
22 /* For multi-user support */
23 #include <tzplatform_config.h>
24
25 #include "net_nfc_typedef_internal.h"
26
27 #ifndef MESSAGE_STORAGE
28 #define MESSAGE_STORAGE tzplatform_mkpath(TZ_SYS_SHARE, "service/nfc-manager")
29 #endif
30
31 typedef enum
32 {
33         NET_NFC_TASK_START = 0x00,
34         NET_NFC_TASK_END,
35         NET_NFC_TASK_ERROR
36 } net_nfc_sound_type_e;
37
38 void net_nfc_manager_util_play_sound(net_nfc_sound_type_e sound_type);
39
40 net_nfc_error_e net_nfc_app_util_process_ndef(data_s *data);
41 void net_nfc_app_util_aul_launch_app(char* package_name, bundle* kb);
42 void net_nfc_app_util_clean_storage(const char* src_path);
43 int net_nfc_app_util_appsvc_launch(const char *operation, const char *uri, const char *mime, const char *data);
44 int net_nfc_app_util_launch_se_transaction_app(net_nfc_secure_element_type_e se_type,
45                 uint8_t *aid, uint32_t aid_len, uint8_t *param, uint32_t param_len);
46 int net_nfc_app_util_encode_base64(uint8_t *buffer, uint32_t buf_len, char *result, uint32_t max_result);
47 int net_nfc_app_util_decode_base64(const char *buffer, uint32_t buf_len, uint8_t *result, uint32_t *res_len);
48 bool net_nfc_app_util_check_launch_state();
49 pid_t net_nfc_app_util_get_focus_app_pid();
50
51 #endif //__NET_NFC_SERVER_UTIL_H__