From 47e5064885a6dc700196e70aa28372b1d2bb6781 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 14 Aug 2015 23:15:42 +0200 Subject: Add fifo console support for server (from DDNet) --- src/engine/shared/fifoconsole.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/engine/shared/fifoconsole.h (limited to 'src/engine/shared/fifoconsole.h') diff --git a/src/engine/shared/fifoconsole.h b/src/engine/shared/fifoconsole.h new file mode 100644 index 00000000..83d14bc0 --- /dev/null +++ b/src/engine/shared/fifoconsole.h @@ -0,0 +1,22 @@ +#ifndef ENGINE_FIFOCONSOLE_H +#define ENGINE_FIFOCONSOLE_H + +#include + +#if defined(CONF_FAMILY_UNIX) + +class FifoConsole +{ + static void ListenFifoThread(void *pUser); + IConsole *m_pConsole; + void *m_pFifoThread; + char *m_pFifoFile; + int m_flag; + +public: + FifoConsole(IConsole *pConsole, char *pFifoFile, int flag); + ~FifoConsole(); +}; +#endif + +#endif // FILE_ENGINE_FIFOCONSOLE_H -- cgit 1.4.1