view plugins/mono/loader/blist-glue.c @ 12064:658623020748

[gaim-migrate @ 14359] SF Patch #1355592 from Sadrul 'If I uncheck the "Show formatting on incoming messages", then it also starts ignoring the format of the outgoing messages -- which I don't believe is the intended behaviour. This patch fixes that.' committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 13 Nov 2005 01:03:43 +0000
parents ecd33ffb0b0a
children 8edb08af68c7
line wrap: on
line source

#include <string.h>
#include "blist.h"
#include "mono-helper.h"

MonoObject* gaim_blist_get_handle_glue(void)
{
	void *handle = gaim_blist_get_handle();
	
	return mono_value_box(ml_get_domain(), mono_get_intptr_class(), &handle);
}

MonoObject* gaim_blist_build_buddy_object(void* data)
{
	MonoObject *obj = NULL;
			
	GaimBuddy *buddy = (GaimBuddy*)data;
	
	obj = ml_create_api_object("Buddy");
	g_return_val_if_fail(obj != NULL, NULL);
		
	ml_set_prop_string(obj, "Name", (char*)gaim_buddy_get_name(buddy));
	ml_set_prop_string(obj, "Alias", (char*)gaim_buddy_get_alias(buddy));
	
	return obj;
}