diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-01 11:54:37 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-01 12:01:13 +0100 |
commit | 2f52bd2ed26cc151fa90ed9e06b1ea9990f9fc7c (patch) | |
tree | e125101f32ad78a679c63f9c08571d3b11cd691f /common | |
parent | af38dcdf3a836a1b94064a617acac387a2de6539 (diff) | |
download | sink-2f52bd2ed26cc151fa90ed9e06b1ea9990f9fc7c.tar.gz sink-2f52bd2ed26cc151fa90ed9e06b1ea9990f9fc7c.zip |
send revision updates from resource to client
this includes an initial revision message on connect
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 | ||