view libpurple/plugins/mono/loader/status-glue.c @ 31489:ff2a8a839dbd

Extensions to the user profile.
author andrew.victor@mxit.com
date Tue, 22 Mar 2011 21:56:30 +0000
parents a8cc50c2279f
children
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;
}