Remove build error in Tizen 3.0
[platform/core/connectivity/nfc-manager-neard.git] / src / manager / include / net_nfc_app_util_private.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
18 #ifndef NET_NFC_APP_UTIL_H
19 #define NET_NFC_APP_UTIL_H
20
21 /* For multi-user support */
22 #include <tzplatform_config.h>
23
24 #include "net_nfc_typedef.h"
25 #include "net_nfc_typedef_private.h"
26 #include <aul.h>
27
28 #ifndef MESSAGE_STORAGE
29 #define MESSAGE_STORAGE tzplatform_mkpath3(TZ_SYS_SHARE, "service", "nfc-manager")
30 #endif
31
32 net_nfc_error_e net_nfc_app_util_store_ndef_message(data_s *data);
33 net_nfc_error_e net_nfc_app_util_process_ndef(data_s *data);
34 void net_nfc_app_util_aul_launch_app(char* package_name, bundle* kb);
35 void net_nfc_app_util_clean_storage(const char* src_path);
36 bool net_nfc_app_util_is_dir(const char* path_name);
37 int net_nfc_app_util_appsvc_launch(const char *operation, const char *uri, const char *mime, const char *data);
38 int net_nfc_app_util_launch_se_transaction_app(net_nfc_secure_element_type_e se_type,
39                         uint8_t *aid, uint32_t aid_len, uint8_t *param, uint32_t param_len);
40 int net_nfc_app_util_encode_base64(uint8_t *buffer, uint32_t buf_len, char *result, uint32_t max_result);
41 int net_nfc_app_util_decode_base64(const char *buffer, uint32_t buf_len, uint8_t *result, uint32_t *res_len);
42 bool net_nfc_app_util_check_launch_state();
43 pid_t net_nfc_app_util_get_focus_app_pid();
44
45 #endif