config/Global: add GetGlobalConfig()
This commit is contained in:
@@ -44,6 +44,12 @@ void config_global_init(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ConfigData &
|
||||||
|
GetGlobalConfig() noexcept
|
||||||
|
{
|
||||||
|
return config_data;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ReadConfigFile(Path path)
|
ReadConfigFile(Path path)
|
||||||
{
|
{
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
class Path;
|
class Path;
|
||||||
class AllocatedPath;
|
class AllocatedPath;
|
||||||
|
struct ConfigData;
|
||||||
struct ConfigParam;
|
struct ConfigParam;
|
||||||
struct ConfigBlock;
|
struct ConfigBlock;
|
||||||
|
|
||||||
@@ -36,6 +37,10 @@ config_global_init();
|
|||||||
void
|
void
|
||||||
config_global_finish();
|
config_global_finish();
|
||||||
|
|
||||||
|
gcc_const
|
||||||
|
const ConfigData &
|
||||||
|
GetGlobalConfig() noexcept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this function after all configuration has been evaluated. It
|
* Call this function after all configuration has been evaluated. It
|
||||||
* checks for unused parameters, and logs warnings.
|
* checks for unused parameters, and logs warnings.
|
||||||
|
Reference in New Issue
Block a user