spkgdeveloper's documentation

message.h

00001 /*----------------------------------------------------------------------*\
00002 |* spkg - The Unofficial Slackware Linux Package Manager                *|
00003 |*                                      designed by Ondøej Jirman, 2005 *|
00004 |*----------------------------------------------------------------------*|
00005 |*          No copy/usage restrictions are imposed on anybody.          *|
00006 \*----------------------------------------------------------------------*/
00010 #ifndef SPKG__MESSAGE_H
00011 #define SPKG__MESSAGE_H
00012 
00013 #include <glib.h>
00014 #include "error.h"
00015 
00016 G_BEGIN_DECLS
00017 
00022 extern void msg_setup(gint verbosity);
00023 
00029 extern void msg(const gint type, const gchar* fmt, ...) G_GNUC_PRINTF (2, 3);
00030 
00031 G_END_DECLS
00032 
00034 #define _debug(fmt, args...) msg(4, fmt, ##args)
00035 
00037 #define _notice(fmt, args...) msg(3, fmt, ##args)
00038 
00040 #define _warning(fmt, args...) msg(2, fmt, ##args)
00041 
00043 #define _inform(fmt, args...) msg(1, fmt, ##args)
00044 
00045 #endif
00046 
Documentation for spkg, Sun Jul 23 13:12:53 2006.