OSDN Git Service

LE: Add API to set scan interval and window (1/4)
authorPrerepa Viswanadham <dham@google.com>
Fri, 9 May 2014 23:09:52 +0000 (16:09 -0700)
committerPrerepa Viswanadham <dham@google.com>
Thu, 15 May 2014 17:36:51 +0000 (17:36 +0000)
Delete client_if from scan api's
Change-Id: If24cb134ae7204de69c8c89664ce34f9d59da76a

include/hardware/bt_gatt_client.h

index baed4bd..abd2e86 100644 (file)
@@ -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);