Mercurial > pidgin
comparison src/protocols/sametime/meanwhile/mw_debug.h @ 11943:0110fc7c6a8a
[gaim-migrate @ 14234]
Bringing things up to date with the last Meanwhile release, 0.5.0 and the last
gaim-meanwhile plugin release, 1.2.5 (which should be the last plugin release
against oldstatus, if all goes well with HEAD and no major bugs crop up)
It builds, so that's a start. The status bits that have been empty since the
first import of the sametime stuff are still empty, but I'm going to try and
fill those in tomorrow. I've decided to try and start using HEAD actively, to
encourage me to get this freaking prpl fully functional.
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Wed, 02 Nov 2005 03:39:03 +0000 |
parents | 3ef77720e577 |
children | a2ebf585d8c6 |
comparison
equal
deleted
inserted
replaced
11942:a24cfe32961a | 11943:0110fc7c6a8a |
---|---|
43 #ifndef g_info | 43 #ifndef g_info |
44 #define g_info(format...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format) | 44 #define g_info(format...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format) |
45 #endif | 45 #endif |
46 | 46 |
47 | 47 |
48 /** logs buf as hex pairs. Requires DEBUG enabled during build */ | |
49 void pretty_print(const char *buf, gsize len); | |
50 | |
51 | |
52 /** logs block as hex pairs. Requires DEBUG enabled during build */ | |
53 void pretty_print_opaque(struct mwOpaque *block); | |
54 | |
55 | |
56 #ifndef MW_MAILME_ADDRESS | 48 #ifndef MW_MAILME_ADDRESS |
57 /** email address used in mw_debug_mailme. */ | 49 /** email address used in mw_debug_mailme. */ |
58 #define MW_MAILME_ADDRESS "meanwhile-devel@lists.sourceforge.net" | 50 #define MW_MAILME_ADDRESS "meanwhile-devel@lists.sourceforge.net" |
59 #endif | 51 #endif |
60 | 52 |
80 "an email to the address listed below with a brief explanation of\n" \ | 72 "an email to the address listed below with a brief explanation of\n" \ |
81 "what you were doing at the time of this message. Thanks a lot!" | 73 "what you were doing at the time of this message. Thanks a lot!" |
82 #endif | 74 #endif |
83 | 75 |
84 | 76 |
77 void mw_debug_datav(const char *buf, gsize len, | |
78 const char *info, va_list args); | |
79 | |
80 | |
81 void mw_debug_data(const char *buf, gsize len, | |
82 const char *info, ...); | |
83 | |
84 | |
85 void mw_debug_opaquev(struct mwOpaque *o, const char *info, va_list args); | |
86 | |
87 | |
88 void mw_debug_opaque(struct mwOpaque *o, const char *info, ...); | |
89 | |
90 | |
91 void mw_mailme_datav(const char *buf, gsize len, | |
92 const char *info, va_list args); | |
93 | |
94 void mw_mailme_data(const char *buf, gsize len, | |
95 const char *info, ...); | |
96 | |
97 | |
85 /** Outputs a hex dump of a mwOpaque with debugging info and a | 98 /** Outputs a hex dump of a mwOpaque with debugging info and a |
86 pre-defined message. Identical to mw_debug_mailme, but taking a | 99 pre-defined message. Identical to mw_mailme_opaque, but taking a |
87 va_list argument */ | 100 va_list argument */ |
88 void mw_debug_mailme_v(struct mwOpaque *block, | 101 void mw_mailme_opaquev(struct mwOpaque *o, const char *info, va_list args); |
89 const char *info, va_list args); | 102 |
90 | 103 |
91 | 104 |
92 /** Outputs a hex dump of a mwOpaque with debugging info and a | 105 /** Outputs a hex dump of a mwOpaque with debugging info and a |
93 pre-defined message. | 106 pre-defined message. |
107 | |
108 if MW_MAILME is undefined or false, this function acts the same as | |
109 mw_mailme_opaque. | |
94 | 110 |
95 @arg block data to be printed in a hex block | 111 @arg block data to be printed in a hex block |
96 @arg info a printf-style format string | 112 @arg info a printf-style format string |
97 | 113 |
98 The resulting message is in the following format: | 114 The resulting message is in the following format: |
103 info | 119 info |
104 block | 120 block |
105 MW_MAILME_CUT_STOP | 121 MW_MAILME_CUT_STOP |
106 @endcode | 122 @endcode |
107 */ | 123 */ |
108 void mw_debug_mailme(struct mwOpaque *block, const char *info, ...); | 124 void mw_mailme_opaque(struct mwOpaque *o, const char *info, ...); |
109 | 125 |
110 | 126 |
111 #endif | 127 #endif |
112 | 128 |