Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
9fe05850
Commit
9fe05850
authored
Jul 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config/Global: add GetGlobalConfig()
parent
8c366f07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Global.cxx
src/config/Global.cxx
+6
-0
Global.hxx
src/config/Global.hxx
+5
-0
No files found.
src/config/Global.cxx
View file @
9fe05850
...
...
@@ -44,6 +44,12 @@ void config_global_init(void)
{
}
const
ConfigData
&
GetGlobalConfig
()
noexcept
{
return
config_data
;
}
void
ReadConfigFile
(
Path
path
)
{
...
...
src/config/Global.hxx
View file @
9fe05850
...
...
@@ -27,6 +27,7 @@
class
Path
;
class
AllocatedPath
;
struct
ConfigData
;
struct
ConfigParam
;
struct
ConfigBlock
;
...
...
@@ -36,6 +37,10 @@ config_global_init();
void
config_global_finish
();
gcc_const
const
ConfigData
&
GetGlobalConfig
()
noexcept
;
/**
* Call this function after all configuration has been evaluated. It
* checks for unused parameters, and logs warnings.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment