diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/CMakeLists.txt | 3 | ||||
-rw-r--r-- | common/commands.h | 1 | ||||
-rw-r--r-- | common/commands/revisionupdate.fbs | 7 |
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 @@ | |||
1 | project(toynadicommon) | 1 | project(toynadicommon) |
2 | generate_flatbuffers(commands/handshake) | 2 | generate_flatbuffers(commands/handshake |
3 | commands/revisionupdate) | ||
3 | 4 | ||
4 | set(command_SRCS | 5 | set(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 | |||
6 | enum CommandIds { | 6 | enum 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 @@ | |||
1 | namespace Toynadi; | ||
2 | |||
3 | table RevisionUpdate { | ||
4 | revision: ulong; | ||
5 | } | ||
6 | |||
7 | root_type RevisionUpdate; \ No newline at end of file | ||