OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Definitions for tether API calls. | 5 // Definitions for tether API calls. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 package tether; | 9 package chromeos.tether; |
10 | 10 |
11 option optimize_for = LITE_RUNTIME; | 11 option optimize_for = LITE_RUNTIME; |
12 | 12 |
13 // Types of messages which are sent between tether hosts and tether clients. | 13 // Types of messages which are sent between tether hosts and tether clients. |
14 enum MessageType { | 14 enum MessageType { |
15 UNKNOWN_TYPE = 0; | 15 UNKNOWN_TYPE = 0; |
16 TETHER_AVAILABILITY_REQUEST = 1; | 16 TETHER_AVAILABILITY_REQUEST = 1; |
17 TETHER_AVAILABILITY_RESPONSE = 2; | 17 TETHER_AVAILABILITY_RESPONSE = 2; |
18 CONNECT_TETHERING_REQUEST = 3; | 18 CONNECT_TETHERING_REQUEST = 3; |
19 CONNECT_TETHERING_RESPONSE = 4; | 19 CONNECT_TETHERING_RESPONSE = 4; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 optional string password = 3; | 96 optional string password = 3; |
97 | 97 |
98 optional DeviceStatus device_status = 4; | 98 optional DeviceStatus device_status = 4; |
99 } | 99 } |
100 | 100 |
101 // Next id: 1 | 101 // Next id: 1 |
102 message KeepAliveTickle {} | 102 message KeepAliveTickle {} |
103 | 103 |
104 // Next id: 1 | 104 // Next id: 1 |
105 message DisconnectTetheringRequest {} | 105 message DisconnectTetheringRequest {} |
OLD | NEW |