annotate plugins/mono/loader/status-glue.c @ 13949:5439d91a0b88

[gaim-migrate @ 16492] Fix a casting warning on 64-bit machines committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 16 Jul 2006 16:46:31 +0000
parents 8edb08af68c7
children
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"
12442
8edb08af68c7 [gaim-migrate @ 14749]
Stu Tomlinson <stu@nosnilmot.com>
parents: 11996
diff changeset
3 #include "mono-glue.h"
11980
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 MonoObject* gaim_status_build_status_object(void* data)
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 {
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 MonoObject *obj = NULL;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 GaimStatus *status = (GaimStatus*)data;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9
11996
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
10 obj = ml_create_api_object("Status");
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
11 g_return_val_if_fail(obj != NULL, NULL);
ecd33ffb0b0a [gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents: 11980
diff changeset
12
11980
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 ml_set_prop_string(obj, "Id", (char*)gaim_status_get_id(status));
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 return obj;
67fbd2ff4c4e [gaim-migrate @ 14273]
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 }