Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/logprint.h @ 1686:393c05fba337
Use G_GNUC_PRINTF to check scr_LogPrint arguments
And some minor fixes, revealed by that.
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sun, 31 Jan 2010 16:08:50 +0200 |
parents | 41c26b7d2890 |
children | e4378fbab5d7 |
comparison
equal
deleted
inserted
replaced
1685:1342df44c814 | 1686:393c05fba337 |
---|---|
1 #ifndef __MCABBER_LOGPRINT_H__ | 1 #ifndef __MCABBER_LOGPRINT_H__ |
2 #define __MCABBER_LOGPRINT_H__ 1 | 2 #define __MCABBER_LOGPRINT_H__ 1 |
3 | |
4 #include <glib.h> | |
3 | 5 |
4 // Flags for scr_LogPrint() | 6 // Flags for scr_LogPrint() |
5 #define LPRINT_NORMAL 1U // Display in log window | 7 #define LPRINT_NORMAL 1U // Display in log window |
6 #define LPRINT_LOG 2U // Log to file (if enabled) | 8 #define LPRINT_LOG 2U // Log to file (if enabled) |
7 #define LPRINT_DEBUG 4U // Debug message (log if enabled) | 9 #define LPRINT_DEBUG 4U // Debug message (log if enabled) |
9 | 11 |
10 // For convenience... | 12 // For convenience... |
11 #define LPRINT_LOGNORM (LPRINT_NORMAL|LPRINT_LOG) | 13 #define LPRINT_LOGNORM (LPRINT_NORMAL|LPRINT_LOG) |
12 | 14 |
13 void scr_print_logwindow(const char *string); | 15 void scr_print_logwindow(const char *string); |
14 void scr_LogPrint(unsigned int flag, const char *fmt, ...); | 16 void scr_LogPrint(unsigned int flag, const char *fmt, ...) G_GNUC_PRINTF (2, 3); |
15 | 17 |
16 void scr_DoUpdate(void); | 18 void scr_DoUpdate(void); |
17 | 19 |
18 #endif /* __MCABBER_LOGPRINT_H__ */ | 20 #endif /* __MCABBER_LOGPRINT_H__ */ |
19 | 21 |