/usr/include/mono-2.0/mono/metadata/class.h is in libmono-2.0-dev 4.6.2.7+dfsg-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | #ifndef _MONO_CLI_CLASS_H_
#define _MONO_CLI_CLASS_H_
#include <mono/metadata/metadata.h>
#include <mono/metadata/image.h>
#include <mono/metadata/loader.h>
#include <mono/utils/mono-error.h>
MONO_BEGIN_DECLS
typedef struct MonoVTable MonoVTable;
typedef struct _MonoClassField MonoClassField;
typedef struct _MonoProperty MonoProperty;
typedef struct _MonoEvent MonoEvent;
MONO_API MonoClass *
mono_class_get (MonoImage *image, uint32_t type_token);
MONO_API MonoClass *
mono_class_get_full (MonoImage *image, uint32_t type_token, MonoGenericContext *context);
MONO_API mono_bool
mono_class_init (MonoClass *klass);
MONO_API MonoVTable *
mono_class_vtable (MonoDomain *domain, MonoClass *klass);
MONO_RT_EXTERNAL_ONLY MONO_API MonoClass *
mono_class_from_name (MonoImage *image, const char* name_space, const char *name);
MONO_RT_EXTERNAL_ONLY MONO_API MonoClass *
mono_class_from_name_case (MonoImage *image, const char* name_space, const char *name);
MONO_API MonoMethod *
mono_class_get_method_from_name_flags (MonoClass *klass, const char *name, int param_count, int flags);
MONO_API MonoClass *
mono_class_from_typeref (MonoImage *image, uint32_t type_token);
MONO_API MonoClass *
mono_class_from_typeref_checked (MonoImage *image, uint32_t type_token, MonoError *error);
MONO_API MonoClass *
mono_class_from_generic_parameter (MonoGenericParam *param, MonoImage *image, mono_bool is_mvar);
MONO_RT_EXTERNAL_ONLY MONO_API MonoType*
mono_class_inflate_generic_type (MonoType *type, MonoGenericContext *context) /* MONO_DEPRECATED */;
MONO_API MonoMethod*
mono_class_inflate_generic_method (MonoMethod *method, MonoGenericContext *context);
MONO_API MonoMethod *
mono_get_inflated_method (MonoMethod *method);
MONO_API MonoClassField*
mono_field_from_token (MonoImage *image, uint32_t token, MonoClass **retklass, MonoGenericContext *context);
MONO_API MonoClass *
mono_bounded_array_class_get (MonoClass *element_class, uint32_t rank, mono_bool bounded);
MONO_API MonoClass *
mono_array_class_get (MonoClass *element_class, uint32_t rank);
MONO_API MonoClass *
mono_ptr_class_get (MonoType *type);
MONO_API MonoClassField *
mono_class_get_field (MonoClass *klass, uint32_t field_token);
MONO_API MonoClassField *
mono_class_get_field_from_name (MonoClass *klass, const char *name);
MONO_API uint32_t
mono_class_get_field_token (MonoClassField *field);
MONO_API uint32_t
mono_class_get_event_token (MonoEvent *event);
MONO_API MonoProperty*
mono_class_get_property_from_name (MonoClass *klass, const char *name);
MONO_API uint32_t
mono_class_get_property_token (MonoProperty *prop);
MONO_API int32_t
mono_array_element_size (MonoClass *ac);
MONO_API int32_t
mono_class_instance_size (MonoClass *klass);
MONO_API int32_t
mono_class_array_element_size (MonoClass *klass);
MONO_API int32_t
mono_class_data_size (MonoClass *klass);
MONO_API int32_t
mono_class_value_size (MonoClass *klass, uint32_t *align);
MONO_API int32_t
mono_class_min_align (MonoClass *klass);
MONO_API MonoClass *
mono_class_from_mono_type (MonoType *type);
MONO_API mono_bool
mono_class_is_subclass_of (MonoClass *klass, MonoClass *klassc,
mono_bool check_interfaces);
MONO_API mono_bool
mono_class_is_assignable_from (MonoClass *klass, MonoClass *oklass);
MONO_API void*
mono_ldtoken (MonoImage *image, uint32_t token, MonoClass **retclass, MonoGenericContext *context);
MONO_API char*
mono_type_get_name (MonoType *type);
MONO_API MonoType*
mono_type_get_underlying_type (MonoType *type);
/* MonoClass accessors */
MONO_API MonoImage*
mono_class_get_image (MonoClass *klass);
MONO_API MonoClass*
mono_class_get_element_class (MonoClass *klass);
MONO_API mono_bool
mono_class_is_valuetype (MonoClass *klass);
MONO_API mono_bool
mono_class_is_enum (MonoClass *klass);
MONO_API MonoType*
mono_class_enum_basetype (MonoClass *klass);
MONO_API MonoClass*
mono_class_get_parent (MonoClass *klass);
MONO_API MonoClass*
mono_class_get_nesting_type (MonoClass *klass);
MONO_API int
mono_class_get_rank (MonoClass *klass);
MONO_API uint32_t
mono_class_get_flags (MonoClass *klass);
MONO_API const char*
mono_class_get_name (MonoClass *klass);
MONO_API const char*
mono_class_get_namespace (MonoClass *klass);
MONO_API MonoType*
mono_class_get_type (MonoClass *klass);
MONO_API uint32_t
mono_class_get_type_token (MonoClass *klass);
MONO_API MonoType*
mono_class_get_byref_type (MonoClass *klass);
MONO_API int
mono_class_num_fields (MonoClass *klass);
MONO_API int
mono_class_num_methods (MonoClass *klass);
MONO_API int
mono_class_num_properties (MonoClass *klass);
MONO_API int
mono_class_num_events (MonoClass *klass);
MONO_API MonoClassField*
mono_class_get_fields (MonoClass* klass, void **iter);
MONO_API MonoMethod*
mono_class_get_methods (MonoClass* klass, void **iter);
MONO_API MonoProperty*
mono_class_get_properties (MonoClass* klass, void **iter);
MONO_API MonoEvent*
mono_class_get_events (MonoClass* klass, void **iter);
MONO_API MonoClass*
mono_class_get_interfaces (MonoClass* klass, void **iter);
MONO_API MonoClass*
mono_class_get_nested_types (MonoClass* klass, void **iter);
MONO_API mono_bool
mono_class_is_delegate (MonoClass* klass);
MONO_API mono_bool
mono_class_implements_interface (MonoClass* klass, MonoClass* iface);
/* MonoClassField accessors */
MONO_API const char*
mono_field_get_name (MonoClassField *field);
MONO_API MonoType*
mono_field_get_type (MonoClassField *field);
MONO_API MonoClass*
mono_field_get_parent (MonoClassField *field);
MONO_API uint32_t
mono_field_get_flags (MonoClassField *field);
MONO_API uint32_t
mono_field_get_offset (MonoClassField *field);
MONO_API const char *
mono_field_get_data (MonoClassField *field);
/* MonoProperty acessors */
MONO_API const char*
mono_property_get_name (MonoProperty *prop);
MONO_API MonoMethod*
mono_property_get_set_method (MonoProperty *prop);
MONO_API MonoMethod*
mono_property_get_get_method (MonoProperty *prop);
MONO_API MonoClass*
mono_property_get_parent (MonoProperty *prop);
MONO_API uint32_t
mono_property_get_flags (MonoProperty *prop);
/* MonoEvent accessors */
MONO_API const char*
mono_event_get_name (MonoEvent *event);
MONO_API MonoMethod*
mono_event_get_add_method (MonoEvent *event);
MONO_API MonoMethod*
mono_event_get_remove_method (MonoEvent *event);
MONO_API MonoMethod*
mono_event_get_remove_method (MonoEvent *event);
MONO_API MonoMethod*
mono_event_get_raise_method (MonoEvent *event);
MONO_API MonoClass*
mono_event_get_parent (MonoEvent *event);
MONO_API uint32_t
mono_event_get_flags (MonoEvent *event);
MONO_API MonoMethod *
mono_class_get_method_from_name (MonoClass *klass, const char *name, int param_count);
MONO_API char *
mono_class_name_from_token (MonoImage *image, uint32_t type_token);
MONO_API mono_bool
mono_method_can_access_field (MonoMethod *method, MonoClassField *field);
MONO_API mono_bool
mono_method_can_access_method (MonoMethod *method, MonoMethod *called);
MONO_END_DECLS
#endif /* _MONO_CLI_CLASS_H_ */
|