view libpurple/plugins/mono/loader/debug-glue.c @ 28954:68cd5a8a3ffe

merge of '12cc2cc3c1e0012329832ea2d170dca5b31f8b9b' and 'bd023f94e67f08aef22c1e266f1cd1eac0dfd998'
author Paul Aurich <paul@darkrain42.org>
date Wed, 03 Feb 2010 21:37:42 +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);
}