2009-01-26 Marek Habersack <mhabersack@novell.com>
[mono.git] / mono / metadata / metadata-internals.h
index 683cf52390f52b19e5c655335a70fce34032bfc7..60cbdb17823c05a6f477975499c1d120f19369f5 100644 (file)
@@ -29,9 +29,9 @@ struct _MonoAssembly {
        int ref_count; /* use atomic operations only */
        char *basedir;
        MonoAssemblyName aname;
-       gpointer aot_module;
        MonoImage *image;
-       GSList *friend_assembly_names;
+       GSList *friend_assembly_names; /* Computed by mono_assembly_load_friends () */
+       guint8 friend_assembly_names_inited;
        guint8 in_gac;
        guint8 dynamic;
        guint8 corlib_internal;
@@ -79,6 +79,7 @@ struct _MonoImage {
         * this image between calls of mono_image_open () and mono_image_close ().
         */
        int   ref_count;
+       void *raw_data_handle;
        char *raw_data;
        guint32 raw_data_len;
        guint8 raw_buffer_used    : 1;
@@ -144,6 +145,8 @@ struct _MonoImage {
 
        MonoImage **files;
 
+       gpointer aot_module;
+
        /*
         * The Assembly this image was loaded from.
         */
@@ -298,6 +301,7 @@ struct _MonoDynamicImage {
        GHashTable *handleref;
        MonoGHashTable *tokens;
        GHashTable *blob_cache;
+       GHashTable *standalonesig_cache;
        GList *array_methods;
        GPtrArray *gen_params;
        MonoGHashTable *token_fixups;
@@ -360,6 +364,18 @@ guint mono_aligned_addr_hash (gconstpointer ptr) MONO_INTERNAL;
 void
 mono_image_check_for_module_cctor (MonoImage *image) MONO_INTERNAL;
 
+gpointer
+mono_image_alloc  (MonoImage *image, guint size) MONO_INTERNAL;
+
+gpointer
+mono_image_alloc0 (MonoImage *image, guint size) MONO_INTERNAL;
+
+char*
+mono_image_strdup (MonoImage *image, const char *s) MONO_INTERNAL;
+
+MonoType*
+mono_metadata_get_shared_type (MonoType *type) MONO_INTERNAL;
+
 void
 mono_metadata_clean_for_image (MonoImage *image) MONO_INTERNAL;