summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/CMakeLists.txt3
-rw-r--r--common/commands.h1
-rw-r--r--common/commands/revisionupdate.fbs7
3 files changed, 10 insertions, 1 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index 32e10f6..a0d3ac9 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -1,5 +1,6 @@
1project(toynadicommon) 1project(toynadicommon)
2generate_flatbuffers(commands/handshake) 2generate_flatbuffers(commands/handshake
3 commands/revisionupdate)
3 4
4set(command_SRCS 5set(command_SRCS
5 console.cpp 6 console.cpp
diff --git a/common/commands.h b/common/commands.h
index 74174ee..68a7c1e 100644
--- a/common/commands.h
+++ b/common/commands.h
@@ -6,6 +6,7 @@ namespace Commands
6enum CommandIds { 6enum CommandIds {
7 UnknownCommand = 0, 7 UnknownCommand = 0,
8 HandshakeCommand, 8 HandshakeCommand,
9 RevisionUpdateCommand,
9 CustomCommand = 0xffff 10 CustomCommand = 0xffff
10}; 11};
11 12
diff --git a/common/commands/revisionupdate.fbs b/common/commands/revisionupdate.fbs
new file mode 100644
index 0000000..d95f1b5
--- /dev/null
+++ b/common/commands/revisionupdate.fbs
@@ -0,0 +1,7 @@
1namespace Toynadi;
2
3table RevisionUpdate {
4 revision: ulong;
5}
6
7root_type RevisionUpdate; \ No newline at end of file