summaryrefslogtreecommitdiffstats
path: root/common/commands.h
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-02 15:19:48 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-02 15:19:48 +0100
commit9c31df56c894892f20a30dc336cfe608b14679e0 (patch)
tree6b6d56d2aa714874daf914344f60ac8b89dbc8de /common/commands.h
parent1ff1928f58f860d71210032d5f0a8e69eb482d2a (diff)
downloadsink-9c31df56c894892f20a30dc336cfe608b14679e0.tar.gz
sink-9c31df56c894892f20a30dc336cfe608b14679e0.zip
consolidate command writing to avoid duplicating those 4 lines everywhere
Diffstat (limited to 'common/commands.h')
-rw-r--r--common/commands.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/commands.h b/common/commands.h
index 68a7c1e..534308d 100644
--- a/common/commands.h
+++ b/common/commands.h
@@ -1,5 +1,9 @@
1#pragma once 1#pragma once
2 2
3#include <flatbuffers/flatbuffers.h>
4
5class QIODevice;
6
3namespace Commands 7namespace Commands
4{ 8{
5 9
@@ -10,4 +14,6 @@ enum CommandIds {
10 CustomCommand = 0xffff 14 CustomCommand = 0xffff
11}; 15};
12 16
17void write(QIODevice *device, int commandId, flatbuffers::FlatBufferBuilder &fbb);
18
13} \ No newline at end of file 19} \ No newline at end of file