Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Bluetooth / plugin_config.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 TIZENAPIS_TIZEN_JS_BLUETOOTH_PLUGIN_CONFIG_H_
18 #define TIZENAPIS_TIZEN_JS_BLUETOOTH_PLUGIN_CONFIG_H_
19
20 #include <Commons/FunctionDeclaration.h>
21
22 namespace TizenApis {
23 namespace Tizen1_0 {
24
25 typedef enum 
26 {
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
45 } bluetoothFuncNames;
46
47
48 extern const char* bluetoothExportedNames[];
49
50 DECLARE_FUNCTION_GETTER(Bluetooth);
51
52 #define BLUETOOTH_CHECK_ACCESS(globalContext, functionName)                       \
53     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >(                \
54         globalContext,                     \
55         getBluetoothFunctionData,             \
56         functionName)
57 }
58 }
59
60 #endif