From 9c31df56c894892f20a30dc336cfe608b14679e0 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 2 Dec 2014 15:19:48 +0100 Subject: consolidate command writing to avoid duplicating those 4 lines everywhere --- common/CMakeLists.txt | 1 + common/commands.h | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'common') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 6533e28..d409828 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -3,6 +3,7 @@ generate_flatbuffers(commands/handshake commands/revisionupdate) set(command_SRCS + commands.cpp console.cpp ${CMAKE_CURRENT_BINARY_DIR}/commands/handshake_generated.h) 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 @@ #pragma once +#include + +class QIODevice; + namespace Commands { @@ -10,4 +14,6 @@ enum CommandIds { CustomCommand = 0xffff }; +void write(QIODevice *device, int commandId, flatbuffers::FlatBufferBuilder &fbb); + } \ No newline at end of file -- cgit v1.2.3