Mercurial > pidgin.yaz
view plugins/mono/loader/status-glue.c @ 12743:33ed71b35a43
[gaim-migrate @ 15090]
similar clean up to use GString instead of allocating and freeing buffers every iteration. The same basic code is used in 3 places to do this, it probably should be consolidated.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 06 Jan 2006 04:17:16 +0000 |
parents | 8edb08af68c7 |
children |
line wrap: on
line source
#include "status.h" #include "mono-helper.h" #include "mono-glue.h" MonoObject* gaim_status_build_status_object(void* data) { MonoObject *obj = NULL; GaimStatus *status = (GaimStatus*)data; obj = ml_create_api_object("Status"); g_return_val_if_fail(obj != NULL, NULL); ml_set_prop_string(obj, "Id", (char*)gaim_status_get_id(status)); return obj; }