Modern Apps git

← Modern-Apps.git

maauto: repair MessageStatus enum mangled by edit

Commit
6284b3b613e0c35e5dc671decead3c30e54773f1
Author
vayun-mathur <[email protected]>
When
2026-09-12 14:40 UTC (2 months ago)
Parents
c110343

Diff

auto/protocol/src/main/proto/gal/control.proto
diff --git a/auto/protocol/src/main/proto/gal/control.proto b/auto/protocol/src/main/proto/gal/control.protoindex ead58bb0be..cfbccf0263 100644--- a/auto/protocol/src/main/proto/gal/control.proto+++ b/auto/protocol/src/main/proto/gal/control.proto@@ -50,16 +50,13 @@ enum MessageStatus {   STATUS_PING_TIMEOUT = -25;   STATUS_CAR_PROPERTY_SET_REQUEST_FAILED = -26;   STATUS_CAR_PROPERTY_LISTENER_REGISTRATION_FAILED = -27;-// Control message 7. Note the order: priority first, then the service id. `priority` is-// sint32 because the control channel opens itself at -128.-message ChannelOpenRequest {-  required sint32 priority = 1;-  required int32 service_id = 2;+  STATUS_COMMAND_NOT_SUPPORTED = -250;+  STATUS_FRAMING_ERROR = -251;+  STATUS_UNEXPECTED_MESSAGE = -253;+  STATUS_BUSY = -254;+  STATUS_OUT_OF_MEMORY = -255; } -// Control message 8. Sent by the HEAD UNIT: whether our channel-open request-// succeeded. `status` is the `xkr` status enum value (STATUS_SUCCESS = 0).- enum ByeByeReason {   USER_SELECTION = 1;   DEVICE_SWITCH = 2;@@ -167,6 +164,13 @@ message ServiceDiscoveryUpdate {   optional Service service = 1; } +// Control message 7. Note the order: priority first, then the service id. `priority` is+// sint32 because the control channel opens itself at -128.+message ChannelOpenRequest {+  required sint32 priority = 1;+  required int32 service_id = 2;+}+ // Control message 8. Sent by the HEAD UNIT: whether our channel-open request // succeeded. `xir.c` is the `xkr` status enum value (STATUS_SUCCESS = 0). // gearhead's `iza.a()` parses exactly this and, on anything but SUCCESS, closes