X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fmetadata.h;h=4fdefd49394832884e208dcc0a49ae0e570c223c;hb=d500a604e1bfd87b5e3273785fb5ea3df76acc55;hp=1149c4082b13b33006c73672c300c43cc654555c;hpb=b39d5edf62fb3908e10647e1a7e60dadeb88b2be;p=mono.git diff --git a/mono/metadata/metadata.h b/mono/metadata/metadata.h index 1149c4082b1..4fdefd49394 100644 --- a/mono/metadata/metadata.h +++ b/mono/metadata/metadata.h @@ -31,6 +31,8 @@ G_BEGIN_DECLS #define MONO_CLASS_IS_INTERFACE(c) ((c->flags & TYPE_ATTRIBUTE_INTERFACE) || (c->byval_arg.type == MONO_TYPE_VAR) || (c->byval_arg.type == MONO_TYPE_MVAR)) +#define MONO_CLASS_IS_IMPORT(c) ((c->flags & TYPE_ATTRIBUTE_IMPORT)) + typedef struct _MonoClass MonoClass; typedef struct _MonoDomain MonoDomain; typedef struct _MonoMethod MonoMethod; @@ -378,6 +380,10 @@ mono_type_get_class (MonoType *type); MonoArrayType* mono_type_get_array_type (MonoType *type); +/* For MONO_TYPE_PTR */ +MonoType* +mono_type_get_ptr_type (MonoType *type); + MonoClass* mono_type_get_modifiers (MonoType *type, gboolean *is_required, gpointer *iter); @@ -506,6 +512,17 @@ char *mono_guid_to_string (const guint8 *guid); guint32 mono_metadata_declsec_from_index (MonoImage *meta, guint32 idx); +guint32 mono_metadata_translate_token_index (MonoImage *image, int table, guint32 idx); + +void mono_metadata_decode_table_row (MonoImage *image, int table, + int idx, + guint32 *res, + int res_size); + +guint32 mono_metadata_decode_table_row_col (MonoImage *image, int table, + int idx, + guint col); + G_END_DECLS #endif /* __MONO_METADATA_H__ */