move enum Commands into class StreamCore to avoid collisions of enum state wait with function pid_t wait(int*)
This commit is contained in:
@ -25,12 +25,10 @@
|
||||
|
||||
#define Z PRINTF_SIZE_T_PREFIX
|
||||
|
||||
ENUM (Commands,
|
||||
end, in, out, wait, event, exec, connect, disconnect);
|
||||
|
||||
/// debug functions /////////////////////////////////////////////
|
||||
|
||||
static char* printCommands(StreamBuffer& buffer, const char* c)
|
||||
char* StreamCore::
|
||||
printCommands(StreamBuffer& buffer, const char* c)
|
||||
{
|
||||
unsigned long timeout;
|
||||
unsigned long eventnumber;
|
||||
|
@ -107,6 +107,9 @@ protected:
|
||||
ENUM(StartMode,
|
||||
StartNormal, StartInit, StartAsync);
|
||||
|
||||
ENUM (Commands,
|
||||
end, in, out, wait, event, exec, connect, disconnect);
|
||||
|
||||
class MutexLock
|
||||
{
|
||||
StreamCore* stream;
|
||||
@ -221,6 +224,9 @@ public:
|
||||
void printProtocol(FILE* = stdout);
|
||||
const char* name() { return streamname; }
|
||||
void printStatus(StreamBuffer& buffer);
|
||||
|
||||
private:
|
||||
char* printCommands(StreamBuffer& buffer, const char* c);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user