[runtime] Export API functions to get arch/os/wordsize strings.
[mono.git] / mono / metadata / mono-config.h
index d8f76aafcf41e7b2a9686903cc40d4e1567f0b72..b9695c14ba296122fa8444d0c942074e2e389997 100644 (file)
@@ -8,20 +8,31 @@
 #ifndef __MONO_METADATA_CONFIG_H__
 #define __MONO_METADATA_CONFIG_H__
 
-G_BEGIN_DECLS
+#include <mono/utils/mono-publib.h>
+#include <mono/metadata/image.h>
 
-const char* mono_get_config_dir (void);
-void        mono_set_config_dir (const char *dir);
+MONO_BEGIN_DECLS
 
-const char* mono_get_machine_config (void);
+MONO_API const char *mono_config_get_os (void);
+MONO_API const char *mono_config_get_cpu (void);
+MONO_API const char *mono_config_get_wordsize (void);
 
-void mono_config_parse        (const char *filename);
-void mono_config_for_assembly (MonoImage *assembly);
-void mono_config_parse_memory (const char *buffer);
+MONO_API const char* mono_get_config_dir (void);
+MONO_API void        mono_set_config_dir (const char *dir);
 
-const char* mono_config_string_for_assembly_file (const char *filename);
+MONO_API const char* mono_get_machine_config (void);
 
-G_END_DECLS
+MONO_API void mono_config_cleanup      (void);
+MONO_API void mono_config_parse        (const char *filename);
+MONO_API void mono_config_for_assembly (MonoImage *assembly);
+MONO_API void mono_config_parse_memory (const char *buffer);
+
+MONO_API const char* mono_config_string_for_assembly_file (const char *filename);
+
+MONO_API void mono_config_set_server_mode (mono_bool server_mode);
+MONO_API mono_bool mono_config_is_server_mode (void);
+
+MONO_END_DECLS
 
 #endif /* __MONO_METADATA_CONFIG_H__ */