[sre] Split out MonoDynamicImage and MonoDynamicStream functions
[mono.git] / mono / metadata / dynamic-image-internals.h
1 /* 
2  * Copyright 2016 Microsoft
3  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
4  */
5 #ifndef __MONO_METADATA_DYNAMIC_IMAGE_INTERNALS_H__
6 #define __MONO_METADATA_DYNAMIC_IMAGE_INTERNALS_H__
7
8 #include <mono/metadata/object.h>
9
10 typedef struct {
11         guint32 import_lookup_table;
12         guint32 timestamp;
13         guint32 forwarder;
14         guint32 name_rva;
15         guint32 import_address_table_rva;
16 } MonoIDT;
17
18 typedef struct {
19         guint32 name_rva;
20         guint32 flags;
21 } MonoILT;
22
23
24 void
25 mono_dynamic_images_init (void);
26
27 void
28 mono_dynamic_image_register_token (MonoDynamicImage *assembly, guint32 token, MonoObject *obj);
29
30 gboolean
31 mono_dynamic_image_is_valid_token (MonoDynamicImage *image, guint32 token);
32
33 MonoDynamicImage*
34 mono_dynamic_image_create (MonoDynamicAssembly *assembly, char *assembly_name, char *module_name);
35
36 guint32
37 mono_dynamic_image_add_to_blob_cached (MonoDynamicImage *assembly, char *b1, int s1, char *b2, int s2);
38
39
40 #endif  /* __MONO_METADATA_DYNAMIC_IMAGE_INTERNALS_H__ */
41