Chienyuan | 4adb042 | 2019-04-25 15:11:54 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package bluetooth.facade; |
| 4 | |
| 5 | enum EventSubscriptionMode { |
| 6 | UNCHANGED = 0; |
| 7 | SUBSCRIBE = 1; |
| 8 | UNSUBSCRIBE = 2; |
| 9 | } |
| 10 | |
| 11 | enum EventFetchMode { |
| 12 | NONE = 0; |
| 13 | ALL_CURRENT = 1; |
| 14 | AT_LEAST_ONE = 2; |
| 15 | } |
| 16 | |
| 17 | message EventStreamRequest { |
| 18 | EventSubscriptionMode subscription_mode = 1; |
| 19 | EventFetchMode fetch_mode = 2; |
Chienyuan | 89430fe | 2019-04-30 16:21:32 -0700 | [diff] [blame] | 20 | uint32 timeout_ms = 3; |
Chienyuan | 4adb042 | 2019-04-25 15:11:54 -0700 | [diff] [blame] | 21 | } |
Hansong Zhang | c5ec8f9 | 2019-06-19 17:22:21 -0700 | [diff] [blame] | 22 | |
| 23 | message BluetoothAddress { |
| 24 | bytes address = 1; |
| 25 | } |
Jack He | cb6424b | 2019-11-27 11:29:59 -0800 | [diff] [blame] | 26 | |
| 27 | enum BluetoothAddressTypeEnum { |
| 28 | PUBLIC_DEVICE_ADDRESS = 0x0; |
| 29 | RANDOM_DEVICE_ADDRESS = 0x1; |
| 30 | PUBLIC_IDENTITY_ADDRESS = 0x2; |
| 31 | RANDOM_IDENTITY_ADDRESS = 0x3; |
| 32 | } |
| 33 | |
| 34 | enum BluetoothPeerAddressTypeEnum { |
| 35 | PUBLIC_DEVICE_OR_IDENTITY_ADDRESS = 0x0; |
| 36 | RANDOM_DEVICE_OR_IDENTITY_ADDRESS = 0x1; |
| 37 | } |