view libpurple/plugins/mono/loader/status-glue.c @ 26019:5a3d1a3ae9f3

merge of 'a617f86bc9f9f151daef5b0980c124f94f277f9a' and 'dca923f5c49ff1a1638b3ac1529f82d846737578'
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 10 Jan 2009 01:29:40 +0000
parents 32c366eeeb99
children a8cc50c2279f
line wrap: on
line source

#include "status.h"
#include "mono-helper.h"
#include "mono-glue.h"

MonoObject* purple_status_build_status_object(void* data)
{
	MonoObject *obj = NULL;
	PurpleStatus *status = (PurpleStatus*)data;
	
	obj = ml_create_api_object("Status");
	g_return_val_if_fail(obj != NULL, NULL);
		
	ml_set_prop_string(obj, "Id", (char*)purple_status_get_id(status));
	
	return obj;
}