X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Freflection.h;h=801c6a07ab978355c54a2edd887294a7ed83e8a3;hb=81d05c0ea48bc2194d4eb60cd197c20131c443d5;hp=28eae48678e7beafdba998f5788a8dd9d1f53192;hpb=9d61782c6e2392d7ceec2006b35be582598a70ae;p=mono.git diff --git a/mono/metadata/reflection.h b/mono/metadata/reflection.h index 28eae48678e..801c6a07ab9 100644 --- a/mono/metadata/reflection.h +++ b/mono/metadata/reflection.h @@ -29,6 +29,8 @@ typedef struct { MonoCustomAttrEntry attrs [MONO_ZERO_LEN_ARRAY]; } MonoCustomAttrInfo; +#define MONO_SIZEOF_CUSTOM_ATTR_INFO (offsetof (MonoCustomAttrInfo, attrs)) + /* * Information which isn't in the MonoMethod structure is stored here for * dynamic methods. @@ -50,6 +52,7 @@ typedef enum { int mono_reflection_parse_type (char *name, MonoTypeNameParse *info); MonoType* mono_reflection_get_type (MonoImage* image, MonoTypeNameParse *info, gboolean ignorecase, gboolean *type_resolve); +void mono_reflection_free_type_info (MonoTypeNameParse *info); MonoType* mono_reflection_type_from_name (char *name, MonoImage *image); guint32 mono_reflection_get_token (MonoObject *obj); @@ -64,7 +67,9 @@ MonoReflectionEvent* mono_event_get_object (MonoDomain *domain, MonoClass /* note: this one is slightly different: we keep the whole array of params in the cache */ MonoArray* mono_param_get_objects (MonoDomain *domain, MonoMethod *method); MonoReflectionMethodBody* mono_method_body_get_object (MonoDomain *domain, MonoMethod *method); -MonoObject* mono_get_dbnull_object (MonoDomain *domain); + +MonoObject *mono_get_dbnull_object (MonoDomain *domain); + MonoArray* mono_reflection_get_custom_attrs_by_type (MonoObject *obj, MonoClass *attr_klass); MonoArray* mono_reflection_get_custom_attrs (MonoObject *obj); MonoArray* mono_reflection_get_custom_attrs_data (MonoObject *obj);