Mercurial > pidgin.yaz
view plugins/mono/loader/mono-helper.h @ 11990:f08a5365e2c9
[gaim-migrate @ 14283]
I haven't quite figured out all of thise size_allocate stuff, but I think
I'm starting to get it. Someone should let me know if this actually helps
any or what.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sun, 06 Nov 2005 19:47:32 +0000 |
parents | 67fbd2ff4c4e |
children | ecd33ffb0b0a |
line wrap: on
line source
#ifndef _GAIM_MONO_LOADER_MONO_HELPER_H_ #define _GAIM_MONO_LOADER_MONO_HELPER_H_ #include <mono/jit/jit.h> #include <mono/metadata/object.h> #include <mono/metadata/environment.h> #include <mono/metadata/assembly.h> #include <mono/metadata/debug-helpers.h> #include <mono/metadata/tokentype.h> #include "plugin.h" #include "value.h" #include "debug.h" typedef struct { GaimPlugin *plugin; MonoAssembly *assm; MonoClass *klass; MonoObject *obj; MonoMethod *init; MonoMethod *load; MonoMethod *unload; MonoMethod *destroy; GList *signal_data; } GaimMonoPlugin; gboolean ml_init(); void ml_uninit(); MonoObject* ml_invoke(MonoMethod *method, void *obj, void **params); MonoObject* ml_delegate_invoke(MonoObject *method, void **params); MonoClass* ml_find_plugin_class(MonoImage *image); gchar* ml_get_prop_string(MonoObject *obj, char *field); void ml_set_prop_string(MonoObject *obj, char *field, char *data); gboolean ml_is_api_dll(MonoImage *image); MonoDomain* ml_get_domain(void); void ml_set_domain(MonoDomain *d); void ml_init_internal_calls(void); MonoObject* ml_object_from_gaim_type(GaimType type, gpointer data); MonoObject* ml_object_from_gaim_subtype(GaimSubType type, gpointer data); void ml_set_api_image(MonoImage *image); MonoImage* ml_get_api_image(); void ml_destroy_signal_data(gpointer data, gpointer user_data); /* hash table stuff; probably don't need it anymore */ void ml_add_plugin(GaimMonoPlugin *plugin); gboolean ml_remove_plugin(GaimMonoPlugin *plugin); gpointer ml_find_plugin(GaimMonoPlugin *plugin); gpointer ml_find_plugin_by_class(MonoClass *klass); GHashTable* ml_get_plugin_hash(); #endif