Hansong Zhang | 30bf869 | 2019-05-02 15:25:54 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package bluetooth.facade; |
| 4 | |
Hansong Zhang | e0a997f | 2019-08-29 14:27:11 -0700 | [diff] [blame] | 5 | import "google/protobuf/empty.proto"; |
| 6 | import "facade/common.proto"; |
| 7 | |
Hansong Zhang | 30bf869 | 2019-05-02 15:25:54 -0700 | [diff] [blame] | 8 | service RootFacade { |
| 9 | rpc StartStack(StartStackRequest) returns (StartStackResponse) {} |
| 10 | rpc StopStack(StopStackRequest) returns (StopStackResponse) {} |
| 11 | } |
| 12 | |
| 13 | enum BluetoothModule { |
| 14 | HAL = 0; |
| 15 | HCI = 1; |
Myles Watson | 6c3a8ec | 2020-01-06 14:44:11 -0800 | [diff] [blame] | 16 | HCI_INTERFACES = 2; |
| 17 | L2CAP = 3; |
| 18 | SECURITY = 4; |
Chris Manton | 9743d20 | 2020-01-17 10:32:53 -0800 | [diff] [blame] | 19 | SHIM = 5; |
Hansong Zhang | 30bf869 | 2019-05-02 15:25:54 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | message StartStackRequest { |
| 23 | BluetoothModule module_under_test = 1; |
| 24 | } |
| 25 | |
| 26 | message StartStackResponse {} |
| 27 | |
| 28 | message StopStackRequest {} |
| 29 | |
| 30 | message StopStackResponse {} |
Hansong Zhang | e0a997f | 2019-08-29 14:27:11 -0700 | [diff] [blame] | 31 | |
| 32 | service ReadOnlyProperty { |
| 33 | rpc ReadLocalAddress(google.protobuf.Empty) returns (facade.BluetoothAddress) {} |
| 34 | } |