Last change
on this file since 3702 was 3509, checked in by Bruno Cornec, 9 years ago |
- Change mr_msg_int interface by adding the FUNCTION macro
- Use mr_msg in mr_system
- Ability to use that new log system everywhere now
|
-
Property svn:eol-style
set to
native
|
File size:
717 bytes
|
Rev | Line | |
---|
[1054] | 1 | /*
|
---|
| 2 | * $Id$
|
---|
| 3 | *
|
---|
| 4 | * Header file of mr_msg: a set of function manipulating messages
|
---|
| 5 | * Provided under the GPL v2
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef MR_MSG_H
|
---|
| 9 | #define MR_MSG_H
|
---|
| 10 |
|
---|
[1061] | 11 | #ifndef _GNU_SOURCE
|
---|
| 12 | #define _GNU_SOURCE
|
---|
| 13 | #endif
|
---|
| 14 | #include <stdarg.h>
|
---|
| 15 |
|
---|
[1054] | 16 | /* functions (public methods) */
|
---|
| 17 |
|
---|
[3509] | 18 | #define mr_msg(lvl,fmt,args...) {mr_msg_int(lvl,__LINE__,__FILE__,__FUNCTION__,fmt,## args);}
|
---|
| 19 | extern void mr_msg_init(const char *logfile, int loglevel);
|
---|
[1064] | 20 | extern void mr_msg_close(void);
|
---|
[1226] | 21 | extern void mr_msg_loglevel(int loglevel);
|
---|
[1054] | 22 |
|
---|
[1104] | 23 | /* Internal function bringing debuging info
|
---|
| 24 | * called indirectly through macros */
|
---|
[3509] | 25 | extern inline void mr_msg_int(int debug, int line, const char *file, const char *function, const char *fmt, ...);
|
---|
[1104] | 26 |
|
---|
[1054] | 27 | #endif /* MR_MSG_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.