Mercurial > pidgin
diff plugins/mono/loader/mono-helper.h @ 11980:67fbd2ff4c4e
[gaim-migrate @ 14273]
Mono cleanup patch from Eoin Coffey
First, I changed mono_loader_ to ml_, since I was
getting sick of typing mono_loader_ :-D
Moved the mono runtime init and deinit code out of
mono.c into ml_init and ml_uninit in mono-helper.c
Added api/Status.cs and loader/status-glue.c so the
.net api now knows very little (as in the 'id') of
statuses.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 05 Nov 2005 02:09:30 +0000 |
parents | 565d2e437c04 |
children | ecd33ffb0b0a |
line wrap: on
line diff
--- a/plugins/mono/loader/mono-helper.h Sat Nov 05 01:57:00 2005 +0000 +++ b/plugins/mono/loader/mono-helper.h Sat Nov 05 02:09:30 2005 +0000 @@ -13,51 +13,61 @@ typedef struct { GaimPlugin *plugin; + MonoAssembly *assm; MonoClass *klass; MonoObject *obj; + MonoMethod *init; MonoMethod *load; MonoMethod *unload; MonoMethod *destroy; + + GList *signal_data; } GaimMonoPlugin; -MonoObject* mono_loader_invoke(MonoMethod *method, void *obj, void **params); +gboolean ml_init(); + +void ml_uninit(); -MonoObject* mono_loader_delegate_invoke(MonoObject *method, void **params); +MonoObject* ml_invoke(MonoMethod *method, void *obj, void **params); -MonoClass* mono_loader_find_plugin_class(MonoImage *image); +MonoObject* ml_delegate_invoke(MonoObject *method, void **params); -gchar* mono_loader_get_prop_string(MonoObject *obj, char *field); +MonoClass* ml_find_plugin_class(MonoImage *image); + +gchar* ml_get_prop_string(MonoObject *obj, char *field); -void mono_loader_set_prop_string(MonoObject *obj, char *field, char *data); +void ml_set_prop_string(MonoObject *obj, char *field, char *data); -gboolean mono_loader_is_api_dll(MonoImage *image); +gboolean ml_is_api_dll(MonoImage *image); -MonoDomain* mono_loader_get_domain(void); +MonoDomain* ml_get_domain(void); + +void ml_set_domain(MonoDomain *d); -void mono_loader_set_domain(MonoDomain *d); +void ml_init_internal_calls(void); -void mono_loader_init_internal_calls(void); +MonoObject* ml_object_from_gaim_type(GaimType type, gpointer data); -MonoObject* mono_loader_object_from_gaim_type(GaimType type, gpointer data); +MonoObject* ml_object_from_gaim_subtype(GaimSubType type, gpointer data); -MonoObject* mono_loader_object_from_gaim_subtype(GaimSubType type, gpointer data); +void ml_set_api_image(MonoImage *image); -void mono_loader_set_api_image(MonoImage *image); +MonoImage* ml_get_api_image(); -MonoImage* mono_loader_get_api_image(); +void ml_destroy_signal_data(gpointer data, gpointer user_data); /* hash table stuff; probably don't need it anymore */ -void mono_loader_add_plugin(GaimMonoPlugin *plugin); +void ml_add_plugin(GaimMonoPlugin *plugin); -gboolean mono_loader_remove_plugin(GaimMonoPlugin *plugin); +gboolean ml_remove_plugin(GaimMonoPlugin *plugin); -gpointer mono_loader_find_plugin(GaimMonoPlugin *plugin); +gpointer ml_find_plugin(GaimMonoPlugin *plugin); -gpointer mono_loader_find_plugin_by_class(MonoClass *klass); +gpointer ml_find_plugin_by_class(MonoClass *klass); -GHashTable* mono_loader_get_plugin_hash(); +GHashTable* ml_get_plugin_hash(); #endif