1 #ifndef _MONO_METADATA_LOADER_H_
2 #define _MONO_METADATA_LOADER_H_ 1
4 #include <mono/metadata/metadata.h>
5 #include <mono/metadata/image.h>
9 typedef mono_bool (*MonoStackWalk
) (MonoMethod
*method
, int32_t native_offset
, int32_t il_offset
, mono_bool managed
, void* data
);
12 mono_get_method (MonoImage
*image
, uint32_t token
, MonoClass
*klass
);
15 mono_get_method_full (MonoImage
*image
, uint32_t token
, MonoClass
*klass
,
16 MonoGenericContext
*context
);
19 mono_get_method_constrained (MonoImage
*image
, uint32_t token
, MonoClass
*constrained_class
,
20 MonoGenericContext
*context
, MonoMethod
**cil_method
);
23 mono_free_method (MonoMethod
*method
);
26 mono_method_get_signature_full (MonoMethod
*method
, MonoImage
*image
, uint32_t token
,
27 MonoGenericContext
*context
);
30 mono_method_get_signature (MonoMethod
*method
, MonoImage
*image
, uint32_t token
);
33 mono_method_signature (MonoMethod
*method
);
36 mono_method_get_header (MonoMethod
*method
);
39 mono_method_get_name (MonoMethod
*method
);
42 mono_method_get_class (MonoMethod
*method
);
45 mono_method_get_token (MonoMethod
*method
);
48 mono_method_get_flags (MonoMethod
*method
, uint32_t *iflags
);
51 mono_method_get_index (MonoMethod
*method
);
54 mono_load_image (const char *fname
, MonoImageOpenStatus
*status
);
57 mono_add_internal_call (const char *name
, const void* method
);
60 mono_lookup_internal_call (MonoMethod
*method
);
63 mono_dllmap_insert (MonoImage
*assembly
, const char *dll
, const char *func
, const char *tdll
, const char *tfunc
);
66 mono_lookup_pinvoke_call (MonoMethod
*method
, const char **exc_class
, const char **exc_arg
);
69 mono_method_get_param_names (MonoMethod
*method
, const char **names
);
72 mono_method_get_param_token (MonoMethod
*method
, int idx
);
75 mono_method_get_marshal_info (MonoMethod
*method
, MonoMarshalSpec
**mspecs
);
78 mono_method_has_marshal_info (MonoMethod
*method
);
81 mono_method_get_last_managed (void);
84 mono_stack_walk (MonoStackWalk func
, void* user_data
);
86 /* Use this if the IL offset is not needed: it's faster */
88 mono_stack_walk_no_il (MonoStackWalk func
, void* user_data
);