annotate mcabber/src/logprint.h @ 1274:c33b5b6fbf08

Fix screen refresh issue (spotted by franky) The message "Reading <JID> history file...", when loading a big history file, was displayed too late.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 22 Aug 2007 22:19:33 +0200
parents 527d6f234924
children f89844a0448a
rev   line source
374
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
1 #ifndef __LOGPRINT_H__
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
2 #define __LOGPRINT_H__ 1
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
3
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
4 // Flags for scr_LogPrint()
952
527d6f234924 Small code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 771
diff changeset
5 #define LPRINT_NORMAL 1U // Display in log window
527d6f234924 Small code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 771
diff changeset
6 #define LPRINT_LOG 2U // Log to file (if enabled)
527d6f234924 Small code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 771
diff changeset
7 #define LPRINT_DEBUG 4U // Debug message (log if enabled)
527d6f234924 Small code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 771
diff changeset
8 #define LPRINT_NOTUTF8 8U // Do not convert from UTF-8 to locale
374
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
9
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
10 // For convenience...
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
11 #define LPRINT_LOGNORM (LPRINT_NORMAL|LPRINT_LOG)
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
12
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
13 void scr_LogPrint(unsigned int flag, const char *fmt, ...);
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
14
1274
c33b5b6fbf08 Fix screen refresh issue (spotted by franky)
Mikael Berthe <mikael@lilotux.net>
parents: 952
diff changeset
15 inline void scr_DoUpdate(void);
c33b5b6fbf08 Fix screen refresh issue (spotted by franky)
Mikael Berthe <mikael@lilotux.net>
parents: 952
diff changeset
16
374
bd5638c21834 Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
17 #endif /* __LOGPRINT_H__ */
576
8b3db0b555a1 Add Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 374
diff changeset
18
580
fed6d1e4d7a9 Fix modelines
Mikael Berthe <mikael@lilotux.net>
parents: 576
diff changeset
19 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */