diff 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
line wrap: on
line diff
--- a/src/protocols/sametime/meanwhile/mw_debug.h	Wed Nov 02 03:31:38 2005 +0000
+++ b/src/protocols/sametime/meanwhile/mw_debug.h	Wed Nov 02 03:39:03 2005 +0000
@@ -45,14 +45,6 @@
 #endif
 
 
-/** logs buf as hex pairs. Requires DEBUG enabled during build */
-void pretty_print(const char *buf, gsize len);
-
-
-/** logs block as hex pairs. Requires DEBUG enabled during build */
-void pretty_print_opaque(struct mwOpaque *block);
-
-
 #ifndef MW_MAILME_ADDRESS
 /** email address used in mw_debug_mailme. */
 #define MW_MAILME_ADDRESS  "meanwhile-devel@lists.sourceforge.net"
@@ -82,16 +74,40 @@
 #endif
 
 
+void mw_debug_datav(const char *buf, gsize len,
+		    const char *info, va_list args);
+
+
+void mw_debug_data(const char *buf, gsize len,
+		   const char *info, ...);
+
+
+void mw_debug_opaquev(struct mwOpaque *o, const char *info, va_list args);
+
+
+void mw_debug_opaque(struct mwOpaque *o, const char *info, ...);
+
+
+void mw_mailme_datav(const char *buf, gsize len,
+		     const char *info, va_list args);
+
+void mw_mailme_data(const char *buf, gsize len,
+		    const char *info, ...);
+
+
 /** Outputs a hex dump of a mwOpaque with debugging info and a
-    pre-defined message. Identical to mw_debug_mailme, but taking a
+    pre-defined message. Identical to mw_mailme_opaque, but taking a
     va_list argument */
-void mw_debug_mailme_v(struct mwOpaque *block,
-		       const char *info, va_list args);
+void mw_mailme_opaquev(struct mwOpaque *o, const char *info, va_list args);
+
 
 
 /** Outputs a hex dump of a mwOpaque with debugging info and a
     pre-defined message.
 
+    if MW_MAILME is undefined or false, this function acts the same as
+    mw_mailme_opaque.
+
     @arg block  data to be printed in a hex block
     @arg info   a printf-style format string
 
@@ -105,7 +121,7 @@
     MW_MAILME_CUT_STOP
     @endcode
  */
-void mw_debug_mailme(struct mwOpaque *block, const char *info, ...);
+void mw_mailme_opaque(struct mwOpaque *o, const char *info, ...);
 
 
 #endif