annotate plugins/mono/loader/status-glue.c @ 11996:ecd33ffb0b0a

[gaim-migrate @ 14289] more mono cleanups from Eoin Coffey committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Sun, 06 Nov 2005 23:09:07 +0000
parents 67fbd2ff4c4e
children 8edb08af68c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11980
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 #include "status.h"
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 #include "mono-helper.h"
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 MonoObject* gaim_status_build_status_object(void* data)
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 {
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 MonoObject *obj = NULL;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 GaimStatus *status = (GaimStatus*)data;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8
11996
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
9 obj = ml_create_api_object("Status");
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
10 g_return_val_if_fail(obj != NULL, NULL);
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
11
11980
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 ml_set_prop_string(obj, "Id", (char*)gaim_status_get_id(status));
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 return obj;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 }