diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-08-04 22:04:57 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-08-04 23:16:02 -0400 |
commit | aa4a2cd92afecf5ce6e3faba441d3b8758b5c372 (patch) | |
tree | 70fbde118b4abb5d589a934f68610471713f6780 /openxc.proto | |
parent | 570048644e960862858dfd984c34f55f6b63144f (diff) |
Require an 'action' in diagnostic requests.
It wasn't very clean to try and infer a delete/create/update based on
the value of the frequency field - this will require a little more code,
but as they say in Python, explicit is better than implicit.
Fixed https://github.com/openxc/openxc-message-format/issues/12
Diffstat (limited to 'openxc.proto')
-rw-r--r-- | openxc.proto | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openxc.proto b/openxc.proto index 5b7e78b..aa7f734 100644 --- a/openxc.proto +++ b/openxc.proto @@ -35,6 +35,7 @@ message CommandResponse { message DiagnosticRequest { enum DecodedType { NONE = 1; OBD2 = 2; } + enum Action { CREATE = 1; UPDATE = 2; DELETE = 3; } optional int32 bus = 1; optional uint32 message_id = 2; @@ -47,6 +48,7 @@ message DiagnosticRequest { optional double frequency = 7; optional string name = 8; optional DecodedType decoded_type = 9; + optional Action action = 10; } message DiagnosticResponse { |