5 #ifndef _MONO_METADATA_LOADER_H_
6 #define _MONO_METADATA_LOADER_H_ 1
8 #include <mono/utils/mono-forward.h>
9 #include <mono/metadata/metadata.h>
10 #include <mono/metadata/image.h>
11 #include <mono/utils/mono-error.h>
15 typedef mono_bool (*MonoStackWalk
) (MonoMethod
*method
, int32_t native_offset
, int32_t il_offset
, mono_bool managed
, void* data
);
17 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod
*
18 mono_get_method (MonoImage
*image
, uint32_t token
, MonoClass
*klass
);
20 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod
*
21 mono_get_method_full (MonoImage
*image
, uint32_t token
, MonoClass
*klass
,
22 MonoGenericContext
*context
);
24 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod
*
25 mono_get_method_constrained (MonoImage
*image
, uint32_t token
, MonoClass
*constrained_class
,
26 MonoGenericContext
*context
, MonoMethod
**cil_method
);
29 mono_free_method (MonoMethod
*method
);
31 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature
*
32 mono_method_get_signature_full (MonoMethod
*method
, MonoImage
*image
, uint32_t token
,
33 MonoGenericContext
*context
);
35 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature
*
36 mono_method_get_signature (MonoMethod
*method
, MonoImage
*image
, uint32_t token
);
38 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodSignature
*
39 mono_method_signature (MonoMethod
*method
);
41 MONO_API MONO_RT_EXTERNAL_ONLY MonoMethodHeader
*
42 mono_method_get_header (MonoMethod
*method
);
45 mono_method_get_name (MonoMethod
*method
);
48 mono_method_get_class (MonoMethod
*method
);
51 mono_method_get_token (MonoMethod
*method
);
54 mono_method_get_flags (MonoMethod
*method
, uint32_t *iflags
);
57 mono_method_get_index (MonoMethod
*method
);
59 MONO_API MONO_RT_EXTERNAL_ONLY
void
60 mono_add_internal_call (const char *name
, const void* method
);
62 MONO_API MONO_RT_EXTERNAL_ONLY
void
63 mono_dangerous_add_raw_internal_call (const char *name
, const void* method
);
66 mono_lookup_internal_call (MonoMethod
*method
);
69 mono_lookup_icall_symbol (MonoMethod
*m
);
71 MONO_API MONO_RT_EXTERNAL_ONLY
void
72 mono_dllmap_insert (MonoImage
*assembly
, const char *dll
, const char *func
, const char *tdll
, const char *tfunc
);
74 MONO_API MONO_RT_EXTERNAL_ONLY
void*
75 mono_lookup_pinvoke_call (MonoMethod
*method
, const char **exc_class
, const char **exc_arg
);
78 mono_method_get_param_names (MonoMethod
*method
, const char **names
);
81 mono_method_get_param_token (MonoMethod
*method
, int idx
);
84 mono_method_get_marshal_info (MonoMethod
*method
, MonoMarshalSpec
**mspecs
);
87 mono_method_has_marshal_info (MonoMethod
*method
);
90 mono_method_get_last_managed (void);
93 mono_stack_walk (MonoStackWalk func
, void* user_data
);
95 /* Use this if the IL offset is not needed: it's faster */
97 mono_stack_walk_no_il (MonoStackWalk func
, void* user_data
);
99 typedef mono_bool (*MonoStackWalkAsyncSafe
) (MonoMethod
*method
, MonoDomain
*domain
, void *base_address
, int offset
, void* data
);
101 mono_stack_walk_async_safe (MonoStackWalkAsyncSafe func
, void *initial_sig_context
, void* user_data
);
103 MONO_API MonoMethodHeader
*
104 mono_method_get_header_checked (MonoMethod
*method
, MonoError
*error
);