[2020-02] Fix leak in assembly-specific dllmap lookups (#21053)
[mono-project.git] / mono / metadata / mono-config.h
blob91cdccd38e39d1b0a74151ac20df2d4666deed55
1 /**
2 * \file
4 * Author: Paolo Molaro (lupus@ximian.com)
6 * (C) 2002 Ximian, Inc.
7 */
8 #ifndef __MONO_METADATA_CONFIG_H__
9 #define __MONO_METADATA_CONFIG_H__
11 #include <mono/utils/mono-publib.h>
12 #include <mono/metadata/image.h>
14 MONO_BEGIN_DECLS
16 MONO_API const char *mono_config_get_os (void);
17 MONO_API const char *mono_config_get_cpu (void);
18 MONO_API const char *mono_config_get_wordsize (void);
20 MONO_API const char* mono_get_config_dir (void);
21 MONO_API void mono_set_config_dir (const char *dir);
23 MONO_API const char* mono_get_machine_config (void);
25 MONO_API void mono_config_cleanup (void);
26 MONO_API void mono_config_parse (const char *filename);
27 MONO_API MONO_RT_EXTERNAL_ONLY void mono_config_for_assembly (MonoImage *assembly);
28 MONO_API void mono_config_parse_memory (const char *buffer);
30 MONO_API const char* mono_config_string_for_assembly_file (const char *filename);
32 MONO_API void mono_config_set_server_mode (mono_bool server_mode);
33 MONO_API mono_bool mono_config_is_server_mode (void);
35 MONO_END_DECLS
37 #endif /* __MONO_METADATA_CONFIG_H__ */