1syntax = "proto3"; 2 3package bluetooth.hci.cert; 4 5import "google/protobuf/empty.proto"; 6import "facade/common.proto"; 7 8service AclManagerCert { 9 rpc SetPageScanMode(PageScanMode) returns (google.protobuf.Empty) {} 10 rpc SetIncomingConnectionPolicy(IncomingConnectionPolicy) returns (google.protobuf.Empty) {} 11 rpc Connect(facade.BluetoothAddress) returns (google.protobuf.Empty) {} 12 rpc Disconnect(facade.BluetoothAddress) returns (google.protobuf.Empty) {} 13 rpc FetchConnectionComplete(google.protobuf.Empty) returns (stream ConnectionEvent) {} 14 rpc FetchDisconnection(google.protobuf.Empty) returns (stream DisconnectionEvent) {} 15 rpc FetchConnectionFailed(google.protobuf.Empty) returns (stream ConnectionFailedEvent) {} 16 rpc SendAclData(AclData) returns (google.protobuf.Empty) {} 17 rpc FetchAclData(google.protobuf.Empty) returns (stream AclData) {} 18} 19 20message PageScanMode { 21 bool enabled = 1; 22} 23 24message IncomingConnectionPolicy { 25 facade.BluetoothAddress remote = 1; 26 bool accepted = 2; 27} 28 29message ConnectionEvent { 30 facade.BluetoothAddress remote = 1; 31} 32 33message DisconnectionEvent { 34 facade.BluetoothAddress remote = 1; 35 uint32 reason = 2; 36} 37 38message ConnectionFailedEvent { 39 facade.BluetoothAddress remote = 1; 40 uint32 reason = 2; 41} 42 43message AclData { 44 facade.BluetoothAddress remote = 1; 45 bytes payload = 2; 46} 47