17 #ifndef LogServerTypes_H_
18 #define LogServerTypes_H_
26 namespace LogServerTypes
28 const unsigned int MAGICNUM = 0x20160417;
46 cmdViewDefaultLogLevel
50 std::ostream& operator<<(std::ostream& os, Command c );
54 lsMessage(): magic(MAGICNUM), cmd(cmdNOP), data(0)
56 std::memset(logname, 0,
sizeof(logname));
62 static const size_t MAXLOGNAME = 30;
63 char logname[MAXLOGNAME + 1];
65 void setLogName(
const std::string& name );
70 } __attribute__((packed));
72 std::ostream& operator<<(std::ostream& os,
lsMessage& m );
77 #endif // LogServerTypes_H_