11660
|
1 #ifndef _GAIM_MONO_LOADER_MONO_HELPER_H_
|
|
2 #define _GAIM_MONO_LOADER_MONO_HELPER_H_
|
|
3
|
|
4 #include <mono/jit/jit.h>
|
|
5 #include <mono/metadata/object.h>
|
|
6 #include <mono/metadata/environment.h>
|
|
7 #include <mono/metadata/assembly.h>
|
|
8 #include <mono/metadata/debug-helpers.h>
|
|
9 #include <mono/metadata/tokentype.h>
|
|
10 #include "plugin.h"
|
|
11 #include "value.h"
|
|
12 #include "debug.h"
|
|
13
|
|
14 typedef struct {
|
|
15 GaimPlugin *plugin;
|
|
16 MonoAssembly *assm;
|
|
17 MonoClass *klass;
|
|
18 MonoObject *obj;
|
|
19 MonoMethod *init;
|
|
20 MonoMethod *load;
|
|
21 MonoMethod *unload;
|
|
22 MonoMethod *destroy;
|
|
23 } GaimMonoPlugin;
|
|
24
|
11952
|
25 MonoObject* mono_loader_invoke(MonoMethod *method, void *obj, void **params);
|
|
26
|
|
27 MonoObject* mono_loader_delegate_invoke(MonoObject *method, void **params);
|
|
28
|
11660
|
29 MonoClass* mono_loader_find_plugin_class(MonoImage *image);
|
|
30
|
|
31 gchar* mono_loader_get_prop_string(MonoObject *obj, char *field);
|
|
32
|
|
33 void mono_loader_set_prop_string(MonoObject *obj, char *field, char *data);
|
|
34
|
|
35 gboolean mono_loader_is_api_dll(MonoImage *image);
|
|
36
|
|
37 MonoDomain* mono_loader_get_domain(void);
|
|
38
|
|
39 void mono_loader_set_domain(MonoDomain *d);
|
|
40
|
|
41 void mono_loader_init_internal_calls(void);
|
|
42
|
|
43 MonoObject* mono_loader_object_from_gaim_type(GaimType type, gpointer data);
|
|
44
|
|
45 MonoObject* mono_loader_object_from_gaim_subtype(GaimSubType type, gpointer data);
|
|
46
|
|
47 void mono_loader_set_api_image(MonoImage *image);
|
|
48
|
|
49 MonoImage* mono_loader_get_api_image();
|
|
50
|
|
51 /* hash table stuff; probably don't need it anymore */
|
|
52
|
|
53 void mono_loader_add_plugin(GaimMonoPlugin *plugin);
|
|
54
|
|
55 gboolean mono_loader_remove_plugin(GaimMonoPlugin *plugin);
|
|
56
|
|
57 gpointer mono_loader_find_plugin(GaimMonoPlugin *plugin);
|
|
58
|
|
59 gpointer mono_loader_find_plugin_by_class(MonoClass *klass);
|
|
60
|
|
61 GHashTable* mono_loader_get_plugin_hash();
|
|
62
|
|
63 #endif
|