| 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 chromeos.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; |
| 20 DISCONNECT_TETHERING_REQUEST = 5; | 20 DISCONNECT_TETHERING_REQUEST = 5; |
| 21 KEEP_ALIVE_TICKLE = 6; | 21 KEEP_ALIVE_TICKLE = 6; |
| 22 KEEP_ALIVE_TICKLE_RESPONSE = 7; |
| 22 } | 23 } |
| 23 | 24 |
| 24 // Meant to communicate the host's current Wifi status. This is intended to | 25 // Meant to communicate the host's current Wifi status. This is intended to |
| 25 // allow the client to warn the user that Tether will disconnect the host's | 26 // allow the client to warn the user that Tether will disconnect the host's |
| 26 // Wi-Fi, if applicable. | 27 // Wi-Fi, if applicable. |
| 27 // Next id: 3 | 28 // Next id: 3 |
| 28 message WifiStatus { | 29 message WifiStatus { |
| 29 enum StatusCode { | 30 enum StatusCode { |
| 30 STATUS_UNKNOWN = 0; | 31 STATUS_UNKNOWN = 0; |
| 31 CONNECTED = 1; | 32 CONNECTED = 1; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 97 |
| 97 // Password for the new hotspot. | 98 // Password for the new hotspot. |
| 98 optional string password = 3; | 99 optional string password = 3; |
| 99 | 100 |
| 100 optional DeviceStatus device_status = 4; | 101 optional DeviceStatus device_status = 4; |
| 101 } | 102 } |
| 102 | 103 |
| 103 // Next id: 1 | 104 // Next id: 1 |
| 104 message KeepAliveTickle {} | 105 message KeepAliveTickle {} |
| 105 | 106 |
| 107 // Next id: 2 |
| 108 message KeepAliveTickleResponse { |
| 109 optional DeviceStatus device_status = 1; |
| 110 } |
| 111 |
| 106 // Next id: 1 | 112 // Next id: 1 |
| 107 message DisconnectTetheringRequest {} | 113 message DisconnectTetheringRequest {} |
| OLD | NEW |