Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Native/Runtime/RhConfig.h')
-rw-r--r--src/Native/Runtime/RhConfig.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Native/Runtime/RhConfig.h b/src/Native/Runtime/RhConfig.h
index 677d97516..b5879c386 100644
--- a/src/Native/Runtime/RhConfig.h
+++ b/src/Native/Runtime/RhConfig.h
@@ -21,7 +21,7 @@
#ifndef DACCESS_COMPILE
#if defined(_DEBUG) || !defined(APP_LOCAL_RUNTIME)
-#define RH_ENVIRONMENT_VARIABLE_CONFIG_ENABLED
+#define FEATURE_ENVIRONMENT_VARIABLE_CONFIG
#endif
class RhConfig
@@ -53,6 +53,12 @@ private:
private:
void* volatile g_iniSettings = NULL;
+#ifdef FEATURE_EMBEDDED_CONFIG
+ // g_embeddedSettings works similarly to g_iniSettings, except the source of the data
+ // is a data blob generated by the compiler and embedded into the executable.
+ void* volatile g_embeddedSettings = NULL;
+#endif // FEATURE_EMBEDDED_CONFIG
+
public:
#define DEFINE_VALUE_ACCESSOR(_name, defaultVal) \
@@ -123,6 +129,14 @@ private:
//cchOutputBuffer is the maximum number of characters to write to outputBuffer
UInt32 GetIniVariable(_In_z_ const TCHAR* configName, _Out_writes_all_(cchOutputBuffer) TCHAR* outputBuffer, _In_ UInt32 cchOutputBuffer);
+#ifdef FEATURE_EMBEDDED_CONFIG
+ void ReadEmbeddedSettings();
+
+ UInt32 GetEmbeddedVariable(_In_z_ const TCHAR* configName, _Out_writes_all_(cchOutputBuffer) TCHAR* outputBuffer, _In_ UInt32 cchOutputBuffer);
+#endif // FEATURE_EMBEDDED_CONFIG
+
+ UInt32 GetConfigVariable(_In_z_ const TCHAR* configName, const ConfigPair* configPairs, _Out_writes_all_(cchOutputBuffer) TCHAR* outputBuffer, _In_ UInt32 cchOutputBuffer);
+
static bool priv_isspace(char c)
{
return (c == ' ') || (c == '\t') || (c == '\n') || (c == '\r');