]> git.sesse.net Git - nageru/blobdiff - json.proto
Add an HTTP endpoint for enumerating channels and one for getting only their colors...
[nageru] / json.proto
diff --git a/json.proto b/json.proto
new file mode 100644 (file)
index 0000000..ae10a7f
--- /dev/null
@@ -0,0 +1,12 @@
+// Messages used to produce JSON (it's the simplest way we can create valid
+// JSON without pulling in an external JSON library).
+
+message Channels {
+       repeated Channel channel = 1;
+}
+
+message Channel {
+       required int32 index = 1;
+       required string name = 2;
+       required string color = 3;
+}