From b9a96fe63416583519d860c206cf27e408bcccab Mon Sep 17 00:00:00 2001
From: Christopher Peplin <chris.peplin@rhubarbtech.com>
Date: Mon, 30 Sep 2013 21:19:06 -0400
Subject: Move proto definition to top level.

---
 benchmark/proto/generate.sh  |  2 +-
 benchmark/proto/openxc.proto | 35 -----------------------------------
 2 files changed, 1 insertion(+), 36 deletions(-)
 delete mode 100644 benchmark/proto/openxc.proto

(limited to 'benchmark')

diff --git a/benchmark/proto/generate.sh b/benchmark/proto/generate.sh
index 576b7b13..09400a3d 100755
--- a/benchmark/proto/generate.sh
+++ b/benchmark/proto/generate.sh
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
 
-protoc -I . --python_out=. openxc.proto
+protoc -I ../.. --python_out=. ../../openxc.proto
diff --git a/benchmark/proto/openxc.proto b/benchmark/proto/openxc.proto
deleted file mode 100644
index 1917b0bd..00000000
--- a/benchmark/proto/openxc.proto
+++ /dev/null
@@ -1,35 +0,0 @@
-package openxc;
-
-message VehicleMessage {
-    enum Type { RAW = 1; STRING = 2; NUM = 3; BOOL = 4; }
-
-    optional Type type = 1;
-
-    optional RawMessage raw_message = 2;
-    optional TranslatedStringMessage string_message = 3;
-    optional TranslatedNumericMessage numerical_message = 4;
-    optional TranslatedBooleanMessage boolean_message = 5;
-}
-
-message RawMessage {
-    optional uint32 message_id = 1;
-    optional double data = 2;
-}
-
-message TranslatedStringMessage {
-    optional string name = 1;
-    optional string value = 2;
-}
-
-message TranslatedNumericMessage {
-    optional string name = 1;
-    optional double value = 2;
-}
-
-message TranslatedBooleanMessage {
-    optional string name = 1;
-    optional bool value = 2;
-}
-
-// TODO we should also consider having an enum type, h aving each specific
-// message defined as a protobuf
-- 
cgit 1.2.3-korg