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.
18 #include "bluetooth-api.h"
19 #include "bt-internal-types.h"
21 #include "bt-service-common.h"
22 #include "bt-service-event.h"
23 #include "bt-service-device.h"
24 #include "bt-service-util.h"
26 int _bt_bond_device(int request_id,
27 bluetooth_device_address_t *device_address,
28 unsigned short conn_type, GArray **out_param1)
30 BT_CHECK_PARAMETER(device_address, return);
32 return BLUETOOTH_ERROR_NOT_SUPPORT;
35 int _bt_cancel_bonding(void)
37 return BLUETOOTH_ERROR_NOT_SUPPORT;
40 int _bt_unbond_device(int request_id,
41 bluetooth_device_address_t *device_address,
44 BT_CHECK_PARAMETER(device_address, return);
46 return BLUETOOTH_ERROR_NOT_SUPPORT;
49 int _bt_search_device(int request_id,
50 bluetooth_device_address_t *device_address)
52 BT_CHECK_PARAMETER(device_address, return);
54 return BLUETOOTH_ERROR_NOT_SUPPORT;
57 int _bt_cancel_search_device(void)
59 return BLUETOOTH_ERROR_NOT_SUPPORT;
62 int _bt_set_alias(bluetooth_device_address_t *device_address,
65 BT_CHECK_PARAMETER(device_address, return);
66 BT_CHECK_PARAMETER(alias, return);
68 return BLUETOOTH_ERROR_NOT_SUPPORT;
71 int _bt_set_authorization(bluetooth_device_address_t *device_address,
74 BT_CHECK_PARAMETER(device_address, return);
76 return BLUETOOTH_ERROR_NOT_SUPPORT;
79 int _bt_is_device_connected(bluetooth_device_address_t *device_address,
80 int connection_type, gboolean *is_connected)
82 retv_if(device_address == NULL, BLUETOOTH_ERROR_INVALID_PARAM);
83 retv_if(is_connected == NULL, BLUETOOTH_ERROR_INVALID_PARAM);
85 *is_connected = FALSE;
87 return BLUETOOTH_ERROR_NOT_SUPPORT;
90 int _bt_get_connected_link(bluetooth_device_address_t *device_address,
91 bluetooth_connected_link_t *connected)
93 BT_CHECK_PARAMETER(device_address, return);
95 return BLUETOOTH_ERROR_NOT_SUPPORT;
98 int _bt_connect_le_device(int request_id,
99 const bluetooth_device_address_t *bd_addr,
100 gboolean auto_connect)
102 BT_CHECK_PARAMETER(bd_addr, return);
104 return BLUETOOTH_ERROR_NOT_SUPPORT;
107 int _bt_disconnect_le_device(int request_id,
108 const bluetooth_device_address_t *bd_addr)
110 BT_CHECK_PARAMETER(bd_addr, return);
112 return BLUETOOTH_ERROR_NOT_SUPPORT;
115 int _bt_connect_le_ipsp_device(const bluetooth_device_address_t *bd_addr)
117 BT_CHECK_PARAMETER(bd_addr, return);
119 return BLUETOOTH_ERROR_NOT_SUPPORT;
122 int _bt_disconnect_le_ipsp_device(const bluetooth_device_address_t *bd_addr)
124 BT_CHECK_PARAMETER(bd_addr, return);
126 return BLUETOOTH_ERROR_NOT_SUPPORT;
129 int _bt_connect_profile(char *address, char *uuid,
130 void *cb, gpointer func_data)
132 return BLUETOOTH_ERROR_NOT_SUPPORT;
135 int _bt_disconnect_profile(char *address, char *uuid,
136 void *cb, gpointer func_data)
138 return BLUETOOTH_ERROR_NOT_SUPPORT;
141 int _bt_enable_rssi(bluetooth_device_address_t *bd_addr, int link_type,
142 int low_threshold, int in_range_threshold, int high_threshold)
144 BT_CHECK_PARAMETER(bd_addr, return);
146 return BLUETOOTH_ERROR_NOT_SUPPORT;
149 int _bt_get_rssi_strength(bluetooth_device_address_t *bd_addr,
152 BT_CHECK_PARAMETER(bd_addr, return);
154 return BLUETOOTH_ERROR_NOT_SUPPORT;
157 int _bt_le_conn_update(unsigned char *device_address,
158 guint16 interval_min, guint16 interval_max,
159 guint16 latency, guint16 time_out)
161 BT_CHECK_PARAMETER(device_address, return);
163 return BLUETOOTH_ERROR_NOT_SUPPORT;
166 int _bt_set_pin_code(bluetooth_device_address_t *device_address,
167 bluetooth_device_pin_code_t *pin_code)
169 BT_CHECK_PARAMETER(device_address, return);
170 BT_CHECK_PARAMETER(pin_code, return);
172 return BLUETOOTH_ERROR_NOT_SUPPORT;
175 int _bt_unset_pin_code(bluetooth_device_address_t *device_address)
177 BT_CHECK_PARAMETER(device_address, return);
179 return BLUETOOTH_ERROR_NOT_SUPPORT;
182 int _bt_get_device_pin_code(const char *address, char *pin_code)
184 BT_CHECK_PARAMETER(address, return);
185 BT_CHECK_PARAMETER(pin_code, return);
187 return BLUETOOTH_ERROR_NOT_SUPPORT;
190 int _bt_get_le_connection_parameter(bluetooth_le_connection_mode_t mode,
191 bluetooth_le_connection_param_t *param)
193 return BLUETOOTH_ERROR_NOT_SUPPORT;
196 int _bt_passkey_reply(const char *passkey, gboolean authentication_reply)
198 return BLUETOOTH_ERROR_NOT_SUPPORT;
201 int _bt_passkey_confirmation_reply(gboolean confirmation_reply)
203 return BLUETOOTH_ERROR_NOT_SUPPORT;