00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CLIENT_MSG_LOG_H
00019 #define CLIENT_MSG_LOG_H
00020
00021
00022
00023
00024
00025
00026 #include <algorithm>
00027 #include <deque>
00028 #include <string>
00029 #include <string.h>
00030
00031 #include "log_flags.h"
00032
00033 class PROJECT;
00034
00035
00037
00038 struct MESSAGE_DESC {
00039 char project_name[256];
00040 int priority;
00041 int timestamp;
00042 int seqno;
00043 std::string message;
00044 };
00045
00046 extern std::deque<MESSAGE_DESC*> message_descs;
00047 extern void record_message(class PROJECT *p, int priority, int now, char* msg);
00048 extern void show_message(class PROJECT *p, char* message, int priority);
00049
00050
00051
00052
00053 #if !defined(__GNUC__) && !defined(__attribute__)
00054 #define __attribute__(x)
00055 #endif
00056
00058
00059 extern void msg_printf(PROJECT *p, int priority, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
00060
00061 #endif