Mercurial > hg
annotate mcabber/mcabber/logprint.h @ 1731:4fbfae993c24
Improve login process
The roster and private storage elements are requested before broadcasting
our presence, because we want the roster before we receive our contacts
presence notifications.
This is more efficients, and also solves an issue with entity capabilities
(as we do not store caps for unknown items).
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Feb 2010 18:50:30 +0100 |
parents | 393c05fba337 |
children | e4378fbab5d7 |
rev | line source |
---|---|
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1518
diff
changeset
|
1 #ifndef __MCABBER_LOGPRINT_H__ |
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1518
diff
changeset
|
2 #define __MCABBER_LOGPRINT_H__ 1 |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
3 |
1686
393c05fba337
Use G_GNUC_PRINTF to check scr_LogPrint arguments
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1668
diff
changeset
|
4 #include <glib.h> |
393c05fba337
Use G_GNUC_PRINTF to check scr_LogPrint arguments
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1668
diff
changeset
|
5 |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
6 // Flags for scr_LogPrint() |
952 | 7 #define LPRINT_NORMAL 1U // Display in log window |
8 #define LPRINT_LOG 2U // Log to file (if enabled) | |
9 #define LPRINT_DEBUG 4U // Debug message (log if enabled) | |
10 #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
|
11 |
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
12 // For convenience... |
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
13 #define LPRINT_LOGNORM (LPRINT_NORMAL|LPRINT_LOG) |
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
14 |
1518
63dc211a4c1a
New command: /echo (display a message in the log window)
Mikael Berthe <mikael@lilotux.net>
parents:
1413
diff
changeset
|
15 void scr_print_logwindow(const char *string); |
1686
393c05fba337
Use G_GNUC_PRINTF to check scr_LogPrint arguments
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1668
diff
changeset
|
16 void scr_LogPrint(unsigned int flag, const char *fmt, ...) G_GNUC_PRINTF (2, 3); |
374
bd5638c21834
Improve logging system (traces)
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
17 |
1413 | 18 void scr_DoUpdate(void); |
1274
c33b5b6fbf08
Fix screen refresh issue (spotted by franky)
Mikael Berthe <mikael@lilotux.net>
parents:
952
diff
changeset
|
19 |
1668
41c26b7d2890
Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1518
diff
changeset
|
20 #endif /* __MCABBER_LOGPRINT_H__ */ |
576 | 21 |
580 | 22 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |