blob: 358db04a594ba2848daa159552afa6ac68feb1eb [file] [log] [blame]
Chienyuan4adb0422019-04-25 15:11:54 -07001syntax = "proto3";
2
3package bluetooth.facade;
4
5enum EventSubscriptionMode {
6 UNCHANGED = 0;
7 SUBSCRIBE = 1;
8 UNSUBSCRIBE = 2;
9}
10
11enum EventFetchMode {
12 NONE = 0;
13 ALL_CURRENT = 1;
14 AT_LEAST_ONE = 2;
15}
16
17message EventStreamRequest {
18 EventSubscriptionMode subscription_mode = 1;
19 EventFetchMode fetch_mode = 2;
Chienyuan89430fe2019-04-30 16:21:32 -070020 uint32 timeout_ms = 3;
Chienyuan4adb0422019-04-25 15:11:54 -070021}
Hansong Zhangc5ec8f92019-06-19 17:22:21 -070022
23message BluetoothAddress {
24 bytes address = 1;
25}
Jack Hecb6424b2019-11-27 11:29:59 -080026
27enum BluetoothAddressTypeEnum {
28 PUBLIC_DEVICE_ADDRESS = 0x0;
29 RANDOM_DEVICE_ADDRESS = 0x1;
30 PUBLIC_IDENTITY_ADDRESS = 0x2;
31 RANDOM_IDENTITY_ADDRESS = 0x3;
32}
33
34enum BluetoothPeerAddressTypeEnum {
35 PUBLIC_DEVICE_OR_IDENTITY_ADDRESS = 0x0;
36 RANDOM_DEVICE_OR_IDENTITY_ADDRESS = 0x1;
37}