diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 12:05:54 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 12:05:54 +0100 |
commit | 5fbb9c7a5e927ad7cd3f3f14593104855499101a (patch) | |
tree | 3428609ae7960ea80af2b999a28330016059ad67 /common/commands.h | |
parent | f41f2ee922d1a653fbe64913dcc209a23758774e (diff) | |
download | sink-5fbb9c7a5e927ad7cd3f3f14593104855499101a.tar.gz sink-5fbb9c7a5e927ad7cd3f3f14593104855499101a.zip |
support writing commands without buffers and with pre-allocated buffers
Diffstat (limited to 'common/commands.h')
-rw-r--r-- | common/commands.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/commands.h b/common/commands.h index 0a2452f..2e84a2f 100644 --- a/common/commands.h +++ b/common/commands.h | |||
@@ -35,9 +35,12 @@ enum CommandIds { | |||
35 | UnknownCommand = 0, | 35 | UnknownCommand = 0, |
36 | HandshakeCommand, | 36 | HandshakeCommand, |
37 | RevisionUpdateCommand, | 37 | RevisionUpdateCommand, |
38 | SynchronizeCommand, | ||
38 | CustomCommand = 0xffff | 39 | CustomCommand = 0xffff |
39 | }; | 40 | }; |
40 | 41 | ||
42 | void AKONADI2COMMON_EXPORT write(QIODevice *device, int commandId); | ||
43 | void AKONADI2COMMON_EXPORT write(QIODevice *device, int commandId, const char *buffer, uint size); | ||
41 | void AKONADI2COMMON_EXPORT write(QIODevice *device, int commandId, flatbuffers::FlatBufferBuilder &fbb); | 44 | void AKONADI2COMMON_EXPORT write(QIODevice *device, int commandId, flatbuffers::FlatBufferBuilder &fbb); |
42 | 45 | ||
43 | } | 46 | } |