From 2f52bd2ed26cc151fa90ed9e06b1ea9990f9fc7c Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 1 Dec 2014 11:54:37 +0100 Subject: send revision updates from resource to client this includes an initial revision message on connect --- common/CMakeLists.txt | 3 ++- common/commands.h | 1 + common/commands/revisionupdate.fbs | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 common/commands/revisionupdate.fbs (limited to 'common') 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 @@ project(toynadicommon) -generate_flatbuffers(commands/handshake) +generate_flatbuffers(commands/handshake + commands/revisionupdate) set(command_SRCS 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 enum CommandIds { UnknownCommand = 0, HandshakeCommand, + RevisionUpdateCommand, CustomCommand = 0xffff }; 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 @@ +namespace Toynadi; + +table RevisionUpdate { + revision: ulong; +} + +root_type RevisionUpdate; \ No newline at end of file -- cgit v1.2.3