summaryrefslogtreecommitdiffstats
path: root/common/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/commands.h')
-rw-r--r--common/commands.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/commands.h b/common/commands.h
index 19c827e..64abd76 100644
--- a/common/commands.h
+++ b/common/commands.h
@@ -20,7 +20,7 @@
20 20
21#pragma once 21#pragma once
22 22
23#include <sinkcommon_export.h> 23#include "sink_export.h"
24#include <flatbuffers/flatbuffers.h> 24#include <flatbuffers/flatbuffers.h>
25#include <QByteArray> 25#include <QByteArray>
26 26
@@ -48,16 +48,17 @@ enum CommandIds {
48 PingCommand, 48 PingCommand,
49 RevisionReplayedCommand, 49 RevisionReplayedCommand,
50 InspectionCommand, 50 InspectionCommand,
51 RemoveFromDiskCommand,
51 CustomCommand = 0xffff 52 CustomCommand = 0xffff
52}; 53};
53 54
54 55
55QByteArray name(int commandId); 56QByteArray name(int commandId);
56 57
57int SINKCOMMON_EXPORT headerSize(); 58int SINK_EXPORT headerSize();
58void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId); 59void SINK_EXPORT write(QIODevice *device, int messageId, int commandId);
59void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); 60void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size);
60void SINKCOMMON_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); 61void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb);
61 62
62} 63}
63 64