OSDN Git Service

Add guest mode functionality (1/3)
authorAjay Panicker <apanicke@google.com>
Fri, 18 Mar 2016 21:27:36 +0000 (14:27 -0700)
committerAjay Panicker <apanicke@google.com>
Sun, 22 May 2016 19:47:50 +0000 (12:47 -0700)
Add a flag to enable() to start Bluetooth in restricted
mode. In restricted mode, all devices that are paired during
restricted mode are deleted upon leaving restricted mode.
Right now restricted mode is only entered while a guest
user is active

Bug: 27410683
Change-Id: I994a2933fd60301927ff2df65da634f81d4c9428

include/hardware/bluetooth.h

index 74cd1fc..3c9a352 100644 (file)
@@ -435,7 +435,7 @@ typedef struct {
     int (*init)(bt_callbacks_t* callbacks );
 
     /** Enable Bluetooth. */
-    int (*enable)(void);
+    int (*enable)(bool guest_mode);
 
     /** Disable Bluetooth. */
     int (*disable)(void);