17 #ifndef LogServerTypes_H_ 18 #define LogServerTypes_H_ 27 namespace LogServerTypes
29 const uint MAGICNUM = 0x20160417;
47 cmdViewDefaultLogLevel
51 std::ostream& operator<<(std::ostream& os, Command c );
55 lsMessage(): magic(MAGICNUM), cmd(cmdNOP), data(0)
57 std::memset(logname, 0,
sizeof(logname));
60 explicit lsMessage( Command c, uint d,
const std::string& logname ):
61 magic(MAGICNUM), cmd(c), data(d)
70 static const size_t MAXLOGNAME = 120;
71 char logname[MAXLOGNAME + 1];
73 void setLogName(
const std::string& name );
78 } __attribute__((packed));
80 std::ostream& operator<<(std::ostream& os,
const lsMessage& m );
90 std::vector<lsMessage> getCommands(
const std::string& cmd );
95 #endif // LogServerTypes_H_ Definition: CommonEventLoop.h:14
Definition: LogServerTypes.h:53