Mercurial > pidgin
view libpurple/plugins/mono/loader/blist-glue.c @ 16688:589cc5757148
propagate from branch 'im.pidgin.padding' (head 4e0b1f990f77ad0ba6efa8bf6f73f422956b36fa)
to branch 'im.pidgin.pidgin' (head 05168290f094ac829b3cec45fafc858cf25342a9)
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Mon, 30 Apr 2007 01:28:41 +0000 |
parents | 32c366eeeb99 |
children | a8cc50c2279f |
line wrap: on
line source
#include <string.h> #include "blist.h" #include "mono-helper.h" #include "mono-glue.h" MonoObject* purple_blist_get_handle_glue(void) { void *handle = purple_blist_get_handle(); return mono_value_box(ml_get_domain(), mono_get_intptr_class(), &handle); } MonoObject* purple_blist_build_buddy_object(void* data) { MonoObject *obj = NULL; PurpleBuddy *buddy = (PurpleBuddy*)data; obj = ml_create_api_object("Buddy"); g_return_val_if_fail(obj != NULL, NULL); ml_set_prop_string(obj, "Name", (char*)purple_buddy_get_name(buddy)); ml_set_prop_string(obj, "Alias", (char*)purple_buddy_get_alias(buddy)); return obj; }