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; |
| 16 | L2CAP = 2; |
| 17 | SECURITY = 3; |
| 18 | } |
| 19 | |
| 20 | message StartStackRequest { |
| 21 | BluetoothModule module_under_test = 1; |
| 22 | } |
| 23 | |
| 24 | message StartStackResponse {} |
| 25 | |
| 26 | message StopStackRequest {} |
| 27 | |
| 28 | message StopStackResponse {} |
Hansong Zhang | e0a997f | 2019-08-29 14:27:11 -0700 | [diff] [blame] | 29 | |
| 30 | service ReadOnlyProperty { |
| 31 | rpc ReadLocalAddress(google.protobuf.Empty) returns (facade.BluetoothAddress) {} |
| 32 | } |