view libpurple/plugins/mono/loader/debug-glue.c @ 30061:4463cd2aba2d

merge of 'b5086a027dfbc0926b74627b9783794d250c2cb4' and 'ea400018f9483ac602c6fa1e16d8c94e37a655b2'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 14 May 2010 06:57:26 +0000
parents fd5dfd3c04b5
children a8cc50c2279f
line wrap: on
line source

#include "mono-glue.h"
#include "debug.h"

void purple_debug_glue(int type, MonoString *cat, MonoString *str)
{
	char *ccat;
	char *cstr;
	
	ccat = mono_string_to_utf8(cat);
	cstr = mono_string_to_utf8(str);
	
	purple_debug(type, ccat, "%s", cstr);
	
	g_free(ccat);
	g_free(cstr);
}