2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef TIZENAPIS_TIZEN_JS_BLUETOOTH_PLUGIN_CONFIG_H_
18 #define TIZENAPIS_TIZEN_JS_BLUETOOTH_PLUGIN_CONFIG_H_
20 #include <Commons/FunctionDeclaration.h>
27 BLUETOOTH_FUNCTION_API_ADAPTER = 0,
28 BLUETOOTH_FUNCTION_API_ADAPTER_SET_POWERED,
29 BLUETOOTH_FUNCTION_API_ADAPTER_SET_VISIBLE,
30 BLUETOOTH_FUNCTION_API_ADAPTER_SET_NAME,
31 BLUETOOTH_FUNCTION_API_ADAPTER_DISCOVER_DEVICES,
32 BLUETOOTH_FUNCTION_API_ADAPTER_STOP_DISCOVERY,
33 BLUETOOTH_FUNCTION_API_ADAPTER_GET_KNOWN_DEVICES,
34 BLUETOOTH_FUNCTION_API_ADAPTER_GET_DEVICE,
35 BLUETOOTH_FUNCTION_API_ADPATER_CREATE_BONDING,
36 BLUETOOTH_FUNCTION_API_ADPATER_DESTROY_BONDING,
37 BLUETOOTH_FUNCTION_API_ADPATER_REGISTER_RFCOMM,
38 BLUETOOTH_FUNCTION_API_ADPATER_UNREGISTER_RFCOMM,
39 BLUETOOTH_FUNCTION_API_DEVICE_CONNECT_TO_SERVICE,
40 BLUETOOTH_FUNCTION_API_SOCKET_SET_SOCKETNOTIFIER,
41 BLUETOOTH_FUNCTION_API_SOCKET_WRITE_DATA,
42 BLUETOOTH_FUNCTION_API_SOCKET_READ_DATA,
43 BLUETOOTH_FUNCTION_API_SOCKET_CLOSE,
44 BLUETOOTH_FUNCTION_API_BLUETOOTHCLASS_HAS_SERVICE
48 extern const char* bluetoothExportedNames[];
50 DECLARE_FUNCTION_GETTER(Bluetooth);
52 #define BLUETOOTH_CHECK_ACCESS(globalContext, functionName) \
53 aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >( \
55 getBluetoothFunctionData, \