Apply the initial codes for BT emulator
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-emul / include / bt-service-network.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
18
19 #ifndef _BT_SERVICE_NETWORK_H_
20 #define _BT_SERVICE_NETWORK_H_
21
22 #include <glib.h>
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 int _bt_network_activate(void);
31
32 int _bt_network_deactivate(void);
33
34 int _bt_network_connect(int request_id, int role,
35                 bluetooth_device_address_t *device_address);
36
37 int _bt_network_disconnect(int request_id,
38                 bluetooth_device_address_t *device_address);
39
40 int _bt_network_server_disconnect(int request_id,
41                 bluetooth_device_address_t *device_address);
42
43 #ifdef __cplusplus
44 }
45 #endif /* __cplusplus */
46 #endif /*_BT_SERVICE_NETWORK_H_*/
47