Debian Codegraph @

src/common/eventlog.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1998 Mark Baysinger ([email protected])
3 * Copyright (C) 1998,1999,2000 Ross Combs ([email protected])
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 #ifndef INCLUDED_EVENTLOG_TYPES
20 #define INCLUDED_EVENTLOG_TYPEScxx . . $ `src/common/eventlog.h:20:9`!
21
22 namespace pvpgncxx . . $ pvpgn/
23 {
24
25 typedef enumcxx . . $ pvpgn/$anonymous_type_daf311e607e65e5b_0#
26 {
27 eventlog_level_nonecxx . . $ pvpgn/eventlog_level_none. = 0,
28 eventlog_level_tracecxx . . $ pvpgn/eventlog_level_trace. = 1,
29 eventlog_level_debugcxx . . $ pvpgn/eventlog_level_debug. = 2,
30 eventlog_level_infocxx . . $ pvpgn/eventlog_level_info. = 4,
31 eventlog_level_warncxx . . $ pvpgn/eventlog_level_warn. = 8,
32 eventlog_level_errorcxx . . $ pvpgn/eventlog_level_error. = 16,
33 eventlog_level_fatalcxx . . $ pvpgn/eventlog_level_fatal. = 32
34 #ifdef WIN32_GUI
35 , eventlog_level_gui = 64
36 #endif
37 } t_eventlog_levelcxx . . $ pvpgn/t_eventlog_level#;
38
39 }
40
41 #endif
42
43
44 /*****/
45 #ifndef JUST_NEED_TYPES
46 #ifndef INCLUDED_EVENTLOG_PROTOS
47 #define INCLUDED_EVENTLOG_PROTOScxx . . $ `src/common/eventlog.h:47:9`!
48
49 #include <cstdio>
50 #include <common/format.h>cxx . . $ `<file>/src/common/format.h`/
51
52 namespace pvpgncxx . . $ pvpgn/
53 {
54
55 extern void eventlog_set_debugmodecxx . . $ pvpgn/eventlog_set_debugmode(d4f767463ce0a6b3).(int debugmode);
56 extern void eventlog_setcxx . . $ pvpgn/eventlog_set(8d4262d45fc644ab).(stdcxx . . $ std/::FILEcxx . . $ std/FILE# * fp);
57 extern stdcxx . . $ std/::FILEcxx . . $ std/FILE# * eventlog_getcxx . . $ pvpgn/eventlog_get(3637adb0f06093ef).(void);
58 extern int eventlog_opencxx . . $ pvpgn/eventlog_open(5c4306d8553b3696).(char const * filename);
59 extern int eventlog_closecxx . . $ pvpgn/eventlog_close(b126dc7c1de90089).(void);
60 extern void eventlog_clear_levelcxx . . $ pvpgn/eventlog_clear_level(49f6e7a06ebc5aa8).(void);
61 extern int eventlog_add_levelcxx . . $ pvpgn/eventlog_add_level(5c4306d8553b3696).(char const * levelname);
62 extern int eventlog_del_levelcxx . . $ pvpgn/eventlog_del_level(5c4306d8553b3696).(char const * levelname);
63 extern char const * eventlog_get_levelname_strcxx . . $ pvpgn/eventlog_get_levelname_str(2e91973defcccfe1).(t_eventlog_levelcxx . . $ pvpgn/t_eventlog_level# level);
64 extern void eventlog_hexdump_datacxx . . $ pvpgn/eventlog_hexdump_data(d249e89a313417f2).(void const * data, unsigned int len);
65
66 void eventlogcxx . . $ pvpgn/eventlog(87c28105849d94ee).(t_eventlog_levelcxx . . $ pvpgn/t_eventlog_level# level, const char* module, const char* format, fmtcxx . . $ fmt/::ArgListcxx . . $ fmt/ArgList# args);
67 FMT_VARIADICcxx . . $ fmt/internal/ArgArray#(void, eventlog, t_eventlog_level, const char*, const char*)
68 //template <typename... Args>
69 // extern void eventlog2(t_eventlog_level level, const char* module, const char* format, const Args& ... args);
70
71 extern void eventlog_stepcxx . . $ pvpgn/eventlog_step(54caeed647379468).(char const * filename, t_eventlog_levelcxx . . $ pvpgn/t_eventlog_level# level, char const * module, char const * fmt, ...) PRINTF_ATTRcxx . . $ `src/common/setup_before.h:366:10`!(4, 5);
72
73 #define ERROR0cxx . . $ `src/common/eventlog.h:73:9`!(fmt) eventlog(eventlog_level_error,__FUNCTION__,fmt)
74 #define ERROR1cxx . . $ `src/common/eventlog.h:74:9`!(fmt,arg1) eventlog(eventlog_level_error,__FUNCTION__,fmt,arg1)
75 #define ERROR2cxx . . $ `src/common/eventlog.h:75:9`!(fmt,arg1,arg2) eventlog(eventlog_level_error,__FUNCTION__,fmt,arg1,arg2)
76 #define ERROR3cxx . . $ `src/common/eventlog.h:76:9`!(fmt,arg1,arg2,arg3) eventlog(eventlog_level_error,__FUNCTION__,fmt,arg1,arg2,arg3)
77
78 #define WARN0cxx . . $ `src/common/eventlog.h:78:9`!(fmt) eventlog(eventlog_level_warn,__FUNCTION__,fmt)
79 #define WARN1cxx . . $ `src/common/eventlog.h:79:9`!(fmt,arg1) eventlog(eventlog_level_warn,__FUNCTION__,fmt,arg1)
80 #define WARN2cxx . . $ `src/common/eventlog.h:80:9`!(fmt,arg1,arg2) eventlog(eventlog_level_warn,__FUNCTION__,fmt,arg1,arg2)
81 #define WARN3cxx . . $ `src/common/eventlog.h:81:9`!(fmt,arg1,arg2,arg3) eventlog(eventlog_level_warn,__FUNCTION__,fmt,arg1,arg2,arg3)
82
83 #define INFO0cxx . . $ `src/common/eventlog.h:83:9`!(fmt) eventlog(eventlog_level_info,__FUNCTION__,fmt)
84 #define INFO1cxx . . $ `src/common/eventlog.h:84:9`!(fmt,arg1) eventlog(eventlog_level_info,__FUNCTION__,fmt,arg1)
85 #define INFO2cxx . . $ `src/common/eventlog.h:85:9`!(fmt,arg1,arg2) eventlog(eventlog_level_info,__FUNCTION__,fmt,arg1,arg2)
86 #define INFO3cxx . . $ `src/common/eventlog.h:86:9`!(fmt,arg1,arg2,arg3) eventlog(eventlog_level_info,__FUNCTION__,fmt,arg1,arg2,arg3)
87
88 #define DEBUG0cxx . . $ `src/common/eventlog.h:88:9`!(fmt) eventlog(eventlog_level_debug,__FUNCTION__,fmt)
89 #define DEBUG1cxx . . $ `src/common/eventlog.h:89:9`!(fmt,arg1) eventlog(eventlog_level_debug,__FUNCTION__,fmt,arg1)
90 #define DEBUG2cxx . . $ `src/common/eventlog.h:90:9`!(fmt,arg1,arg2) eventlog(eventlog_level_debug,__FUNCTION__,fmt,arg1,arg2)
91 #define DEBUG3cxx . . $ `src/common/eventlog.h:91:9`!(fmt,arg1,arg2,arg3) eventlog(eventlog_level_debug,__FUNCTION__,fmt,arg1,arg2,arg3)
92
93 #define TRACE0cxx . . $ `src/common/eventlog.h:93:9`!(fmt) eventlog(eventlog_level_trace,__FUNCTION__,fmt)
94 #define TRACE1cxx . . $ `src/common/eventlog.h:94:9`!(fmt,arg1) eventlog(eventlog_level_trace,__FUNCTION__,fmt,arg1)
95 #define TRACE2cxx . . $ `src/common/eventlog.h:95:9`!(fmt,arg1,arg2) eventlog(eventlog_level_trace,__FUNCTION__,fmt,arg1,arg2)
96 #define TRACE3cxx . . $ `src/common/eventlog.h:96:9`!(fmt,arg1,arg2,arg3) eventlog(eventlog_level_trace,__FUNCTION__,fmt,arg1,arg2,arg3)
97
98 }
99
100 #endif
101 #endif