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.
19 #ifndef _BT_SERVICE_NETWORK_H_
20 #define _BT_SERVICE_NETWORK_H_
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
30 #define NAP_UUID_NAME "nap"
31 #define GN_UUID_NAME "gn"
32 #define PANU_UUID_NAME "panu"
33 #define NET_BRIDGE_INTERFACE "pan0"
35 int _bt_network_activate(void);
37 int _bt_network_deactivate(void);
39 int _bt_network_connect(int request_id, int role,
40 bluetooth_device_address_t *device_address);
42 int _bt_network_disconnect(int request_id,
43 bluetooth_device_address_t *device_address);
45 int _bt_network_server_disconnect(int request_id,
46 bluetooth_device_address_t *device_address);
48 void *_bt_network_connected_profile(void *connection, unsigned char *address);
50 int _bt_is_network_connected(void *connection, unsigned char *address,
51 gboolean *is_connected);
55 #endif /* __cplusplus */
56 #endif /*_BT_SERVICE_NETWORK_H_*/