summaryrefslogtreecommitdiffstats
path: root/include/hardware/bt_gatt_client.h
diff options
context:
space:
mode:
authorPrerepa Viswanadham <dham@google.com>2014-05-09 16:09:52 -0700
committerPrerepa Viswanadham <dham@google.com>2014-05-15 17:36:51 +0000
commit45edab9af594826365e84e16ce1ca1b3cb1efea2 (patch)
tree6f71881ec1d7efb01cc0b51488681f0fc8613d12 /include/hardware/bt_gatt_client.h
parent7072684fbfc73b0dd92dc010f418b3919221f1d8 (diff)
downloadhardware_libhardware-45edab9af594826365e84e16ce1ca1b3cb1efea2.zip
hardware_libhardware-45edab9af594826365e84e16ce1ca1b3cb1efea2.tar.gz
hardware_libhardware-45edab9af594826365e84e16ce1ca1b3cb1efea2.tar.bz2
LE: Add API to set scan interval and window (1/4)
Delete client_if from scan api's Change-Id: If24cb134ae7204de69c8c89664ce34f9d59da76a
Diffstat (limited to 'include/hardware/bt_gatt_client.h')
-rw-r--r--include/hardware/bt_gatt_client.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h
index baed4bd..abd2e86 100644
--- a/include/hardware/bt_gatt_client.h
+++ b/include/hardware/bt_gatt_client.h
@@ -195,7 +195,7 @@ typedef struct {
bt_status_t (*unregister_client)(int client_if );
/** Start or stop LE device scanning */
- bt_status_t (*scan)( int client_if, bool start );
+ bt_status_t (*scan)( bool start );
/** Create a connection to a remote LE or dual-mode device */
bt_status_t (*connect)( int client_if, const bt_bdaddr_t *bd_addr,
@@ -304,6 +304,9 @@ typedef struct {
/** Configure the MTU for a given connection */
bt_status_t (*configure_mtu)(int conn_id, int mtu);
+ /** Sets the LE scan interval and window in units of N*0.625 msec */
+ bt_status_t (*set_scan_parameters)(int scan_interval, int scan_window);
+
/** Test mode interface */
bt_status_t (*test_command)( int command, btgatt_test_params_t* params);