summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-01 11:54:37 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-01 12:01:13 +0100
commit2f52bd2ed26cc151fa90ed9e06b1ea9990f9fc7c (patch)
treee125101f32ad78a679c63f9c08571d3b11cd691f /common
parentaf38dcdf3a836a1b94064a617acac387a2de6539 (diff)
downloadsink-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.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