aboutsummaryrefslogtreecommitdiff
path: root/gd/hci/cert/api.proto
diff options
context:
space:
mode:
Diffstat (limited to 'gd/hci/cert/api.proto')
-rw-r--r--gd/hci/cert/api.proto46
1 files changed, 46 insertions, 0 deletions
diff --git a/gd/hci/cert/api.proto b/gd/hci/cert/api.proto
new file mode 100644
index 000000000..30b35919f
--- /dev/null
+++ b/gd/hci/cert/api.proto
@@ -0,0 +1,46 @@
+syntax = "proto3";
+
+package bluetooth.hci.cert;
+
+import "google/protobuf/empty.proto";
+import "facade/common.proto";
+
+service AclManagerCert {
+ rpc SetPageScanMode(PageScanMode) returns (google.protobuf.Empty) {}
+ rpc SetIncomingConnectionPolicy(IncomingConnectionPolicy) returns (google.protobuf.Empty) {}
+ rpc Connect(facade.BluetoothAddress) returns (google.protobuf.Empty) {}
+ rpc Disconnect(facade.BluetoothAddress) returns (google.protobuf.Empty) {}
+ rpc FetchConnectionComplete(google.protobuf.Empty) returns (stream ConnectionEvent) {}
+ rpc FetchDisconnection(google.protobuf.Empty) returns (stream DisconnectionEvent) {}
+ rpc FetchConnectionFailed(google.protobuf.Empty) returns (stream ConnectionFailedEvent) {}
+ rpc SendAclData(AclData) returns (google.protobuf.Empty) {}
+ rpc FetchAclData(google.protobuf.Empty) returns (stream AclData) {}
+}
+
+message PageScanMode {
+ bool enabled = 1;
+}
+
+message IncomingConnectionPolicy {
+ facade.BluetoothAddress remote = 1;
+ bool accepted = 2;
+}
+
+message ConnectionEvent {
+ facade.BluetoothAddress remote = 1;
+}
+
+message DisconnectionEvent {
+ facade.BluetoothAddress remote = 1;
+ uint32 reason = 2;
+}
+
+message ConnectionFailedEvent {
+ facade.BluetoothAddress remote = 1;
+ uint32 reason = 2;
+}
+
+message AclData {
+ facade.BluetoothAddress remote = 1;
+ bytes payload = 2;
+}