Apply changes from https://github.com/dotnet/runtime/commit/eb1756e97d23df13bc6fe798e...
[mono-project.git] / mono / metadata / mono-private-unstable.h
blob7b214bf70adbf70a65d0c588e627dcebf27e7ae5
1 /**
2 * \file
3 *
4 * Private unstable APIs.
6 * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at
7 * any time.
9 */
12 #ifndef __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__
13 #define __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__
15 #include <mono/utils/mono-publib.h>
17 typedef MonoGCHandle MonoAssemblyLoadContextGCHandle;
19 MONO_API MONO_RT_EXTERNAL_ONLY MonoAssembly *
20 mono_assembly_load_full_alc (MonoAssemblyLoadContextGCHandle alc_gchandle, MonoAssemblyName *aname, const char *basedir, MonoImageOpenStatus *status);
22 MONO_API MONO_RT_EXTERNAL_ONLY MonoImage *
23 mono_image_open_from_data_alc (MonoAssemblyLoadContextGCHandle alc_gchandle, char *data, uint32_t data_len, mono_bool need_copy, MonoImageOpenStatus *status, const char *name);
25 typedef MonoAssembly * (*MonoAssemblyPreLoadFuncV3) (MonoAssemblyLoadContextGCHandle alc_gchandle, MonoAssemblyName *aname, char **assemblies_path, void *user_data, MonoError *error);
27 MONO_API MONO_RT_EXTERNAL_ONLY void
28 mono_install_assembly_preload_hook_v3 (MonoAssemblyPreLoadFuncV3 func, void *user_data, mono_bool append);
30 MONO_API MONO_RT_EXTERNAL_ONLY MonoAssemblyLoadContextGCHandle
31 mono_alc_get_default_gchandle (void);
33 typedef struct _MonoBundledSatelliteAssembly MonoBundledSatelliteAssembly;
35 MONO_API void
36 mono_register_bundled_satellite_assemblies (const MonoBundledSatelliteAssembly **assemblies);
38 MONO_API MonoBundledSatelliteAssembly *
39 mono_create_new_bundled_satellite_assembly (const char *name, const char *culture, const unsigned char *data, unsigned int size);
41 #endif /*__MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__*/