2016-05-02 21:36:21 +00:00
|
|
|
#ifndef ENGINE_SHARED_FIFO_H
|
|
|
|
#define ENGINE_SHARED_FIFO_H
|
|
|
|
|
|
|
|
#include <engine/console.h>
|
|
|
|
|
|
|
|
class CFifo
|
|
|
|
{
|
|
|
|
IConsole *m_pConsole;
|
2021-09-13 08:06:34 +00:00
|
|
|
char m_aFilename[IO_MAX_PATH_LENGTH];
|
2016-05-02 21:36:21 +00:00
|
|
|
int m_Flag;
|
2023-01-20 20:36:28 +00:00
|
|
|
#if defined(CONF_FAMILY_UNIX)
|
2016-05-05 21:32:55 +00:00
|
|
|
int m_File;
|
2023-01-20 20:36:28 +00:00
|
|
|
#elif defined(CONF_FAMILY_WINDOWS)
|
|
|
|
void *m_pPipe;
|
|
|
|
#endif
|
2016-05-02 21:36:21 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
void Init(IConsole *pConsole, char *pFifoFile, int Flag);
|
|
|
|
void Update();
|
|
|
|
void Shutdown();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|