blob: 2a473ce35141431fa0c9a25ec39cecf3e33d27ac [file] [log] [blame]
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -08001/*
2 * Copyright (C) 2013 The Android Open Source Project
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#ifndef ANDROID_INCLUDE_BT_GATT_CLIENT_H
19#define ANDROID_INCLUDE_BT_GATT_CLIENT_H
20
21#include <stdint.h>
22#include "bt_gatt_types.h"
Satya Callojia8b49d32015-02-10 09:20:07 -080023#include "bt_common_types.h"
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -080024
25__BEGIN_DECLS
26
27/**
28 * Buffer sizes for maximum attribute length and maximum read/write
29 * operation buffer size.
30 */
31#define BTGATT_MAX_ATTR_LEN 600
32
33/** Buffer type for unformatted reads/writes */
34typedef struct
35{
36 uint8_t value[BTGATT_MAX_ATTR_LEN];
37 uint16_t len;
38} btgatt_unformatted_value_t;
39
40/** Parameters for GATT read operations */
41typedef struct
42{
43 btgatt_srvc_id_t srvc_id;
Andre Eisenbach02223d12013-07-09 00:02:48 -070044 btgatt_gatt_id_t char_id;
45 btgatt_gatt_id_t descr_id;
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -080046 btgatt_unformatted_value_t value;
47 uint16_t value_type;
48 uint8_t status;
49} btgatt_read_params_t;
50
51/** Parameters for GATT write operations */
52typedef struct
53{
54 btgatt_srvc_id_t srvc_id;
Andre Eisenbach02223d12013-07-09 00:02:48 -070055 btgatt_gatt_id_t char_id;
56 btgatt_gatt_id_t descr_id;
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -080057 uint8_t status;
58} btgatt_write_params_t;
59
60/** Attribute change notification parameters */
61typedef struct
62{
63 uint8_t value[BTGATT_MAX_ATTR_LEN];
64 bt_bdaddr_t bda;
65 btgatt_srvc_id_t srvc_id;
Andre Eisenbach02223d12013-07-09 00:02:48 -070066 btgatt_gatt_id_t char_id;
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -080067 uint16_t len;
68 uint8_t is_notify;
69} btgatt_notify_params_t;
70
71typedef struct
72{
Satya Callojia8b49d32015-02-10 09:20:07 -080073 uint8_t client_if;
74 uint8_t action;
75 uint8_t filt_index;
76 uint16_t feat_seln;
77 uint16_t list_logic_type;
78 uint8_t filt_logic_type;
79 uint8_t rssi_high_thres;
80 uint8_t rssi_low_thres;
81 uint8_t dely_mode;
82 uint16_t found_timeout;
83 uint16_t lost_timeout;
84 uint8_t found_timeout_cnt;
85 uint16_t num_of_tracking_entries;
86} btgatt_filt_param_setup_t;
87
88typedef struct
89{
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -080090 bt_bdaddr_t *bda1;
91 bt_uuid_t *uuid1;
92 uint16_t u1;
93 uint16_t u2;
94 uint16_t u3;
95 uint16_t u4;
96 uint16_t u5;
97} btgatt_test_params_t;
98
Satya Calloji51225022015-03-31 13:58:21 -070099/* BT GATT client error codes */
100typedef enum
101{
102 BT_GATTC_COMMAND_SUCCESS = 0, /* 0 Command succeeded */
103 BT_GATTC_COMMAND_STARTED, /* 1 Command started OK. */
104 BT_GATTC_COMMAND_BUSY, /* 2 Device busy with another command */
105 BT_GATTC_COMMAND_STORED, /* 3 request is stored in control block */
106 BT_GATTC_NO_RESOURCES, /* 4 No resources to issue command */
107 BT_GATTC_MODE_UNSUPPORTED, /* 5 Request for 1 or more unsupported modes */
108 BT_GATTC_ILLEGAL_VALUE, /* 6 Illegal command /parameter value */
109 BT_GATTC_INCORRECT_STATE, /* 7 Device in wrong state for request */
110 BT_GATTC_UNKNOWN_ADDR, /* 8 Unknown remote BD address */
111 BT_GATTC_DEVICE_TIMEOUT, /* 9 Device timeout */
112 BT_GATTC_INVALID_CONTROLLER_OUTPUT,/* 10 An incorrect value was received from HCI */
113 BT_GATTC_SECURITY_ERROR, /* 11 Authorization or security failure or not authorized */
114 BT_GATTC_DELAYED_ENCRYPTION_CHECK, /*12 Delayed encryption check */
115 BT_GATTC_ERR_PROCESSING /* 12 Generic error */
116} btgattc_error_t;
117
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800118/** BT-GATT Client callback structure. */
119
120/** Callback invoked in response to register_client */
121typedef void (*register_client_callback)(int status, int client_if,
122 bt_uuid_t *app_uuid);
123
124/** Callback for scan results */
125typedef void (*scan_result_callback)(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data);
126
127/** GATT open callback invoked in response to open */
128typedef void (*connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t* bda);
129
130/** Callback invoked in response to close */
131typedef void (*disconnect_callback)(int conn_id, int status,
132 int client_if, bt_bdaddr_t* bda);
133
134/**
135 * Invoked in response to search_service when the GATT service search
136 * has been completed.
137 */
138typedef void (*search_complete_callback)(int conn_id, int status);
139
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800140/** Callback invoked in response to [de]register_for_notification */
141typedef void (*register_for_notification_callback)(int conn_id,
142 int registered, int status, btgatt_srvc_id_t *srvc_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700143 btgatt_gatt_id_t *char_id);
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800144
145/**
146 * Remote device notification callback, invoked when a remote device sends
147 * a notification or indication that a client has registered for.
148 */
149typedef void (*notify_callback)(int conn_id, btgatt_notify_params_t *p_data);
150
151/** Reports result of a GATT read operation */
152typedef void (*read_characteristic_callback)(int conn_id, int status,
153 btgatt_read_params_t *p_data);
154
155/** GATT write characteristic operation callback */
156typedef void (*write_characteristic_callback)(int conn_id, int status,
157 btgatt_write_params_t *p_data);
158
159/** GATT execute prepared write callback */
160typedef void (*execute_write_callback)(int conn_id, int status);
161
162/** Callback invoked in response to read_descriptor */
163typedef void (*read_descriptor_callback)(int conn_id, int status,
164 btgatt_read_params_t *p_data);
165
166/** Callback invoked in response to write_descriptor */
167typedef void (*write_descriptor_callback)(int conn_id, int status,
168 btgatt_write_params_t *p_data);
169
170/** Callback triggered in response to read_remote_rssi */
171typedef void (*read_remote_rssi_callback)(int client_if, bt_bdaddr_t* bda,
172 int rssi, int status);
173
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700174/**
Satya Calloji20a1a052014-05-10 23:37:11 -0700175 * Callback indicating the status of a listen() operation
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700176 */
177typedef void (*listen_callback)(int status, int server_if);
178
Andre Eisenbach8a4b61a2014-03-25 06:30:05 -0700179/** Callback invoked when the MTU for a given connection changes */
180typedef void (*configure_mtu_callback)(int conn_id, int status, int mtu);
181
Andre Eisenbach709f2392013-12-16 16:16:54 -0800182/** Callback invoked when a scan filter configuration command has completed */
Satya Callojia28f92a2014-06-11 22:53:12 -0700183typedef void (*scan_filter_cfg_callback)(int action, int client_if, int status, int filt_type,
184 int avbl_space);
185
186/** Callback invoked when scan param has been added, cleared, or deleted */
187typedef void (*scan_filter_param_callback)(int action, int client_if, int status,
188 int avbl_space);
189
190/** Callback invoked when a scan filter configuration command has completed */
191typedef void (*scan_filter_status_callback)(int enable, int client_if, int status);
Andre Eisenbach709f2392013-12-16 16:16:54 -0800192
Wei Wang6c2e2d32014-05-20 06:30:05 +0000193/** Callback invoked when multi-adv enable operation has completed */
194typedef void (*multi_adv_enable_callback)(int client_if, int status);
195
196/** Callback invoked when multi-adv param update operation has completed */
197typedef void (*multi_adv_update_callback)(int client_if, int status);
198
199/** Callback invoked when multi-adv instance data set operation has completed */
200typedef void (*multi_adv_data_callback)(int client_if, int status);
201
202/** Callback invoked when multi-adv disable operation has completed */
203typedef void (*multi_adv_disable_callback)(int client_if, int status);
204
Andre Eisenbach9ef3c722014-03-28 14:53:33 -0700205/**
206 * Callback notifying an application that a remote device connection is currently congested
207 * and cannot receive any more data. An application should avoid sending more data until
208 * a further callback is received indicating the congestion status has been cleared.
209 */
210typedef void (*congestion_callback)(int conn_id, bool congested);
Satya Calloji20a1a052014-05-10 23:37:11 -0700211/** Callback invoked when batchscan storage config operation has completed */
212typedef void (*batchscan_cfg_storage_callback)(int client_if, int status);
213
214/** Callback invoked when batchscan enable / disable operation has completed */
215typedef void (*batchscan_enable_disable_callback)(int action, int client_if, int status);
216
217/** Callback invoked when batchscan reports are obtained */
218typedef void (*batchscan_reports_callback)(int client_if, int status, int report_format,
219 int num_records, int data_len, uint8_t* rep_data);
220
221/** Callback invoked when batchscan storage threshold limit is crossed */
222typedef void (*batchscan_threshold_callback)(int client_if);
223
Satya Callojibe7f0442014-07-03 10:59:16 -0700224/** Track ADV VSE callback invoked when tracked device is found or lost */
Satya Callojia8b49d32015-02-10 09:20:07 -0800225typedef void (*track_adv_event_callback)(btgatt_track_adv_info_t *p_track_adv_info);
Andre Eisenbach9ef3c722014-03-28 14:53:33 -0700226
Satya Calloji51225022015-03-31 13:58:21 -0700227/** Callback invoked when scan parameter setup has completed */
228typedef void (*scan_parameter_setup_completed_callback)(int client_if,
229 btgattc_error_t status);
230
Jakub Pawlowskif2e13522016-01-21 23:40:51 -0800231/** GATT get database callback */
232typedef void (*get_gatt_db_callback)(int conn_id, btgatt_db_element_t *db, int count);
233
Jakub Pawlowski83e598f2016-02-10 15:31:14 -0800234/** GATT services between start_handle and end_handle were removed */
235typedef void (*services_removed_callback)(int conn_id, uint16_t start_handle, uint16_t end_handle);
236
237/** GATT services were added */
238typedef void (*services_added_callback)(int conn_id, btgatt_db_element_t *added, int added_count);
239
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800240typedef struct {
241 register_client_callback register_client_cb;
242 scan_result_callback scan_result_cb;
243 connect_callback open_cb;
244 disconnect_callback close_cb;
245 search_complete_callback search_complete_cb;
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800246 register_for_notification_callback register_for_notification_cb;
247 notify_callback notify_cb;
248 read_characteristic_callback read_characteristic_cb;
249 write_characteristic_callback write_characteristic_cb;
250 read_descriptor_callback read_descriptor_cb;
251 write_descriptor_callback write_descriptor_cb;
252 execute_write_callback execute_write_cb;
253 read_remote_rssi_callback read_remote_rssi_cb;
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700254 listen_callback listen_cb;
Andre Eisenbach8a4b61a2014-03-25 06:30:05 -0700255 configure_mtu_callback configure_mtu_cb;
Satya Callojia28f92a2014-06-11 22:53:12 -0700256 scan_filter_cfg_callback scan_filter_cfg_cb;
257 scan_filter_param_callback scan_filter_param_cb;
258 scan_filter_status_callback scan_filter_status_cb;
Wei Wang6c2e2d32014-05-20 06:30:05 +0000259 multi_adv_enable_callback multi_adv_enable_cb;
260 multi_adv_update_callback multi_adv_update_cb;
261 multi_adv_data_callback multi_adv_data_cb;
262 multi_adv_disable_callback multi_adv_disable_cb;
Andre Eisenbach9ef3c722014-03-28 14:53:33 -0700263 congestion_callback congestion_cb;
Satya Calloji20a1a052014-05-10 23:37:11 -0700264 batchscan_cfg_storage_callback batchscan_cfg_storage_cb;
265 batchscan_enable_disable_callback batchscan_enb_disable_cb;
266 batchscan_reports_callback batchscan_reports_cb;
267 batchscan_threshold_callback batchscan_threshold_cb;
Satya Calloji3154bab2014-06-15 11:51:38 -0700268 track_adv_event_callback track_adv_event_cb;
Satya Calloji51225022015-03-31 13:58:21 -0700269 scan_parameter_setup_completed_callback scan_parameter_setup_completed_cb;
Jakub Pawlowskif2e13522016-01-21 23:40:51 -0800270 get_gatt_db_callback get_gatt_db_cb;
Jakub Pawlowski83e598f2016-02-10 15:31:14 -0800271 services_removed_callback services_removed_cb;
272 services_added_callback services_added_cb;
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800273} btgatt_client_callbacks_t;
274
275/** Represents the standard BT-GATT client interface. */
276
277typedef struct {
278 /** Registers a GATT client application with the stack */
279 bt_status_t (*register_client)( bt_uuid_t *uuid );
280
281 /** Unregister a client application from the stack */
282 bt_status_t (*unregister_client)(int client_if );
283
284 /** Start or stop LE device scanning */
Prerepa Viswanadham45edab92014-05-09 16:09:52 -0700285 bt_status_t (*scan)( bool start );
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800286
287 /** Create a connection to a remote LE or dual-mode device */
288 bt_status_t (*connect)( int client_if, const bt_bdaddr_t *bd_addr,
Ganesh Ganapathi Battaf9f4d102014-04-18 10:02:49 -0700289 bool is_direct, int transport );
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800290
291 /** Disconnect a remote device or cancel a pending connection */
292 bt_status_t (*disconnect)( int client_if, const bt_bdaddr_t *bd_addr,
293 int conn_id);
294
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700295 /** Start or stop advertisements to listen for incoming connections */
296 bt_status_t (*listen)(int client_if, bool start);
297
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800298 /** Clear the attribute cache for a given device */
299 bt_status_t (*refresh)( int client_if, const bt_bdaddr_t *bd_addr );
300
301 /**
302 * Enumerate all GATT services on a connected device.
303 * Optionally, the results can be filtered for a given UUID.
304 */
305 bt_status_t (*search_service)(int conn_id, bt_uuid_t *filter_uuid );
306
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800307 /** Read a characteristic on a remote device */
308 bt_status_t (*read_characteristic)( int conn_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700309 btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800310 int auth_req );
311
312 /** Write a remote characteristic */
313 bt_status_t (*write_characteristic)(int conn_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700314 btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800315 int write_type, int len, int auth_req,
316 char* p_value);
317
318 /** Read the descriptor for a given characteristic */
319 bt_status_t (*read_descriptor)(int conn_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700320 btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
321 btgatt_gatt_id_t *descr_id, int auth_req);
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800322
323 /** Write a remote descriptor for a given characteristic */
324 bt_status_t (*write_descriptor)( int conn_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700325 btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
326 btgatt_gatt_id_t *descr_id, int write_type, int len,
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800327 int auth_req, char* p_value);
328
329 /** Execute a prepared write operation */
330 bt_status_t (*execute_write)(int conn_id, int execute);
331
332 /**
333 * Register to receive notifications or indications for a given
334 * characteristic
335 */
336 bt_status_t (*register_for_notification)( int client_if,
337 const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700338 btgatt_gatt_id_t *char_id);
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800339
340 /** Deregister a previous request for notifications/indications */
341 bt_status_t (*deregister_for_notification)( int client_if,
342 const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
Andre Eisenbach02223d12013-07-09 00:02:48 -0700343 btgatt_gatt_id_t *char_id);
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800344
345 /** Request RSSI for a given remote device */
346 bt_status_t (*read_remote_rssi)( int client_if, const bt_bdaddr_t *bd_addr);
347
Satya Callojia28f92a2014-06-11 22:53:12 -0700348 /** Setup scan filter params */
Satya Callojia8b49d32015-02-10 09:20:07 -0800349 bt_status_t (*scan_filter_param_setup)(btgatt_filt_param_setup_t filt_param);
Satya Callojia28f92a2014-06-11 22:53:12 -0700350
Andre Eisenbach709f2392013-12-16 16:16:54 -0800351
352 /** Configure a scan filter condition */
Satya Callojia28f92a2014-06-11 22:53:12 -0700353 bt_status_t (*scan_filter_add_remove)(int client_if, int action, int filt_type,
354 int filt_index, int company_id,
355 int company_id_mask, const bt_uuid_t *p_uuid,
356 const bt_uuid_t *p_uuid_mask, const bt_bdaddr_t *bd_addr,
357 char addr_type, int data_len, char* p_data, int mask_len,
358 char* p_mask);
Andre Eisenbach709f2392013-12-16 16:16:54 -0800359
Satya Callojia28f92a2014-06-11 22:53:12 -0700360 /** Clear all scan filter conditions for specific filter index*/
361 bt_status_t (*scan_filter_clear)(int client_if, int filt_index);
362
363 /** Enable / disable scan filter feature*/
364 bt_status_t (*scan_filter_enable)(int client_if, bool enable);
Andre Eisenbach709f2392013-12-16 16:16:54 -0800365
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800366 /** Determine the type of the remote device (LE, BR/EDR, Dual-mode) */
367 int (*get_device_type)( const bt_bdaddr_t *bd_addr );
368
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700369 /** Set the advertising data or scan response data */
Wei Wang6c2e2d32014-05-20 06:30:05 +0000370 bt_status_t (*set_adv_data)(int client_if, bool set_scan_rsp, bool include_name,
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700371 bool include_txpower, int min_interval, int max_interval, int appearance,
Wei Wanga16d11d2013-11-05 16:09:51 -0800372 uint16_t manufacturer_len, char* manufacturer_data,
373 uint16_t service_data_len, char* service_data,
374 uint16_t service_uuid_len, char* service_uuid);
Andre Eisenbach299e43c2013-08-06 19:54:25 -0700375
Andre Eisenbach8a4b61a2014-03-25 06:30:05 -0700376 /** Configure the MTU for a given connection */
377 bt_status_t (*configure_mtu)(int conn_id, int mtu);
378
Andre Eisenbachda4eaca2014-07-16 22:58:36 -0700379 /** Request a connection parameter update */
380 bt_status_t (*conn_parameter_update)(const bt_bdaddr_t *bd_addr, int min_interval,
381 int max_interval, int latency, int timeout);
382
Prerepa Viswanadham45edab92014-05-09 16:09:52 -0700383 /** Sets the LE scan interval and window in units of N*0.625 msec */
Satya Calloji51225022015-03-31 13:58:21 -0700384 bt_status_t (*set_scan_parameters)(int client_if, int scan_interval, int scan_window);
Prerepa Viswanadham45edab92014-05-09 16:09:52 -0700385
Wei Wang6c2e2d32014-05-20 06:30:05 +0000386 /* Setup the parameters as per spec, user manual specified values and enable multi ADV */
387 bt_status_t (*multi_adv_enable)(int client_if, int min_interval,int max_interval,int adv_type,
Andre Eisenbach4789ed52014-08-07 15:18:34 -0700388 int chnl_map, int tx_power, int timeout_s);
Wei Wang6c2e2d32014-05-20 06:30:05 +0000389
390 /* Update the parameters as per spec, user manual specified values and restart multi ADV */
391 bt_status_t (*multi_adv_update)(int client_if, int min_interval,int max_interval,int adv_type,
Andre Eisenbach4789ed52014-08-07 15:18:34 -0700392 int chnl_map, int tx_power, int timeout_s);
Wei Wang6c2e2d32014-05-20 06:30:05 +0000393
394 /* Setup the data for the specified instance */
395 bt_status_t (*multi_adv_set_inst_data)(int client_if, bool set_scan_rsp, bool include_name,
Andre Eisenbach4789ed52014-08-07 15:18:34 -0700396 bool incl_txpower, int appearance, int manufacturer_len,
397 char* manufacturer_data, int service_data_len,
398 char* service_data, int service_uuid_len, char* service_uuid);
Wei Wang6c2e2d32014-05-20 06:30:05 +0000399
400 /* Disable the multi adv instance */
401 bt_status_t (*multi_adv_disable)(int client_if);
402
Satya Calloji20a1a052014-05-10 23:37:11 -0700403 /* Configure the batchscan storage */
404 bt_status_t (*batchscan_cfg_storage)(int client_if, int batch_scan_full_max,
405 int batch_scan_trunc_max, int batch_scan_notify_threshold);
406
407 /* Enable batchscan */
408 bt_status_t (*batchscan_enb_batch_scan)(int client_if, int scan_mode,
409 int scan_interval, int scan_window, int addr_type, int discard_rule);
410
411 /* Disable batchscan */
412 bt_status_t (*batchscan_dis_batch_scan)(int client_if);
413
414 /* Read out batchscan reports */
415 bt_status_t (*batchscan_read_reports)(int client_if, int scan_mode);
416
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800417 /** Test mode interface */
418 bt_status_t (*test_command)( int command, btgatt_test_params_t* params);
Ganesh Ganapathi Battaf9f4d102014-04-18 10:02:49 -0700419
Jakub Pawlowskif2e13522016-01-21 23:40:51 -0800420 /** Get gatt db content */
421 bt_status_t (*get_gatt_db)( int conn_id);
422
Ganesh Ganapathi Battafefb3342013-02-05 15:23:45 -0800423} btgatt_client_interface_t;
424
425__END_DECLS
426
427#endif /* ANDROID_INCLUDE_BT_GATT_CLIENT_H */