diff options
| author | def <dennis@felsin9.de> | 2015-08-14 23:15:42 +0200 |
|---|---|---|
| committer | def <dennis@felsin9.de> | 2015-08-14 23:15:42 +0200 |
| commit | 47e5064885a6dc700196e70aa28372b1d2bb6781 (patch) | |
| tree | c87053af46041f8e0a0043f7606cd20c164ae80a /src/engine/shared/fifoconsole.h | |
| parent | 84039565f26749a202a2e321bfcdd416c47b0559 (diff) | |
| download | zcatch-47e5064885a6dc700196e70aa28372b1d2bb6781.tar.gz zcatch-47e5064885a6dc700196e70aa28372b1d2bb6781.zip | |
Add fifo console support for server (from DDNet)
Diffstat (limited to 'src/engine/shared/fifoconsole.h')
| -rw-r--r-- | src/engine/shared/fifoconsole.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <engine/console.h> + +#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 |