source: MondoRescue/branches/3.3/mondo/src/include/mr_msg.h@ 3708

Last change on this file since 3708 was 3708, checked in by Bruno Cornec, 6 years ago

daptation for gcc 5 (inline funcs mngt)

  • Property svn:eol-style set to native
File size: 757 bytes
RevLine 
[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>
[3708]15#include "mr_std.h"
[1061]16
[1054]17/* functions (public methods) */
18
[3509]19#define mr_msg(lvl,fmt,args...) {mr_msg_int(lvl,__LINE__,__FILE__,__FUNCTION__,fmt,## args);}
[3628]20extern void mr_msg_init(const char *logfile, int loglevel, int argc, char *argv[]);
[1064]21extern void mr_msg_close(void);
[1226]22extern void mr_msg_loglevel(int loglevel);
[1054]23
[1104]24/* Internal function bringing debuging info
25 * called indirectly through macros */
[3708]26MR_EXTERN void mr_msg_int(int debug, int line, const char *file, const char *function, const char *fmt, ...);
[1104]27
[1054]28#endif /* MR_MSG_H */
Note: See TracBrowser for help on using the repository browser.