changeset 7526:77727178a1df

[gaim-migrate @ 8139] Temp debug print op added committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sun, 16 Nov 2003 03:23:37 +0000
parents 7398a8d6862d
children e64060a18be7
files src/win32/win32dep.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/win32/win32dep.c	Sun Nov 16 01:55:59 2003 +0000
+++ b/src/win32/win32dep.c	Sun Nov 16 03:23:37 2003 +0000
@@ -270,6 +270,17 @@
         g_free(old_home);
 }
 
+static void wgaim_debug_print(GaimDebugLevel level, const char *category, const char *format, va_list args) {
+        char *str = g_strdup_vprintf(format, args);
+        printf("%s%s%s", category?category:"", category?": ":"",str);
+        g_free(str);
+}
+
+static GaimDebugUiOps ops = 
+{
+	wgaim_debug_print
+};
+
 /*
  *  PUBLIC CODE
  */
@@ -501,6 +512,7 @@
 	char *perlenv;
         char *newenv;
 
+        gaim_debug_set_ui_ops(&ops);
 	gaim_debug(GAIM_DEBUG_INFO, "wgaim", "wgaim_init start\n");
 
 	gaimexe_hInstance = hint;