[GATT Server] Delivery the specific error code to central device
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-emul / bt-service-network.c
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 #include <glib.h>
19 #include <string.h>
20 #include <stdio.h>
21
22 #include "bluetooth-api.h"
23 #include "bt-internal-types.h"
24 #include "bt-service-network.h"
25 #include "bt-service-common.h"
26 #include "bt-service-event.h"
27 #include "bt-service-util.h"
28
29 int _bt_network_activate(void)
30 {
31         return BLUETOOTH_ERROR_NOT_SUPPORT;
32 }
33
34 int _bt_network_deactivate(void)
35 {
36         return BLUETOOTH_ERROR_NOT_SUPPORT;
37 }
38
39 int _bt_network_connect(int request_id, int role,
40                 bluetooth_device_address_t *device_address)
41 {
42         BT_CHECK_PARAMETER(device_address, return);
43
44         return BLUETOOTH_ERROR_NOT_SUPPORT;
45 }
46
47 int _bt_network_disconnect(int request_id,
48                 bluetooth_device_address_t *device_address)
49 {
50         BT_CHECK_PARAMETER(device_address, return);
51
52         return BLUETOOTH_ERROR_NOT_SUPPORT;
53 }
54
55 int _bt_network_server_disconnect(int request_id,
56                 bluetooth_device_address_t *device_address)
57 {
58         BT_CHECK_PARAMETER(device_address, return);
59
60         return BLUETOOTH_ERROR_NOT_SUPPORT;
61 }