199da3f90e41c71fa70e164586ac968a9a6c5ca5
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-network.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25 #ifndef _BT_SERVICE_NETWORK_H_
26 #define _BT_SERVICE_NETWORK_H_
27
28 #include <glib.h>
29 #include <sys/types.h>
30 #include "bluetooth-api.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 #define NAP_UUID_NAME "nap"
37 #define GN_UUID_NAME "gn"
38 #define PANU_UUID_NAME "panu"
39 #define NET_BRIDGE_INTERFACE "pan0"
40
41 int _bt_network_activate(void);
42
43 int _bt_network_deactivate(void);
44
45 int _bt_network_connect(int request_id, int role,
46                 bluetooth_device_address_t *device_address);
47
48 int _bt_network_disconnect(int request_id,
49                 bluetooth_device_address_t *device_address);
50
51 int _bt_network_server_disconnect(int request_id,
52                 bluetooth_device_address_t *device_address);
53
54 void *_bt_network_connected_profile(void *connection, unsigned char *address);
55
56 int _bt_is_network_connected(void *connection, unsigned char *address,
57                                                 gboolean *is_connected);
58
59 #ifdef __cplusplus
60 }
61 #endif /* __cplusplus */
62 #endif /*_BT_SERVICE_NETWORK_H_*/
63