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.
19 #include "net_nfc_typedef.h"
20 #include "net_nfc_client.h"
22 #ifndef NET_NFC_EXPORT_API
23 #define NET_NFC_EXPORT_API __attribute__((visibility("default")))
30 net_nfc_error_e net_nfc_client_initialize()
32 net_nfc_error_e result = NET_NFC_OK;
34 net_nfc_client_gdbus_init();
41 net_nfc_error_e net_nfc_client_deinitialize()
43 net_nfc_error_e result = NET_NFC_OK;
45 net_nfc_client_gdbus_deinit();
52 net_nfc_error_e net_nfc_client_is_nfc_supported(int *state)
57 if (vconf_get_bool(VCONFKEY_NFC_FEATURE, state) == 0)
60 ret = NET_NFC_INVALID_STATE;
62 ret = NET_NFC_NULL_PARAMETER;
70 net_nfc_error_e net_nfc_client_get_nfc_state(int *state)
75 if (vconf_get_bool(VCONFKEY_NFC_STATE, state) == 0)
78 ret = NET_NFC_INVALID_STATE;
80 ret = NET_NFC_NULL_PARAMETER;