source: MondoRescue/branches/stable/mondo/src/include/mr_msg.h@ 1226

Last change on this file since 1226 was 1226, checked in by Bruno Cornec, 17 years ago

Addition of a mr_msg_loglevel function in order to be able to change
the loglevel dynamically (useful for mondoarchive)

  • Property svn:eol-style set to native
File size: 676 bytes
Line 
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
11#ifndef _GNU_SOURCE
12#define _GNU_SOURCE
13#endif
14#include <stdarg.h>
15
16/* functions (public methods) */
17
18#define mr_msg(x,y,args...) {mr_msg_int(x,__LINE__,__FILE__,y,## args);}
19extern void mr_msg_init(const char *configfile, int loglevel);
20extern void mr_msg_close(void);
21extern void mr_msg_loglevel(int loglevel);
22
23/* Internal function bringing debuging info
24 * called indirectly through macros */
25extern inline void mr_msg_int(int debug,int line, const char *file, const char *fmt, ...);
26
27#endif /* MR_MSG_H */
Note: See TracBrowser for help on using the repository browser.