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
24a86dce
Commit
24a86dce
authored
Jul 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/Config: use struct ConfigData
parent
0209bc4b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
Main.cxx
src/Main.cxx
+1
-1
Config.cxx
src/tag/Config.cxx
+3
-3
Config.hxx
src/tag/Config.hxx
+3
-1
DumpDatabase.cxx
test/DumpDatabase.cxx
+1
-1
No files found.
src/Main.cxx
View file @
24a86dce
...
...
@@ -500,7 +500,7 @@ try {
glue_daemonize_init
(
&
options
);
#endif
TagLoadConfig
();
TagLoadConfig
(
GetGlobalConfig
()
);
log_init
(
options
.
verbose
,
options
.
log_stderr
);
...
...
src/tag/Config.cxx
View file @
24a86dce
...
...
@@ -21,7 +21,7 @@
#include "Config.hxx"
#include "Settings.hxx"
#include "ParseName.hxx"
#include "config/
Global
.hxx"
#include "config/
Data
.hxx"
#include "config/Option.hxx"
#include "util/Alloc.hxx"
#include "util/ASCII.hxx"
...
...
@@ -31,9 +31,9 @@
#include <stdlib.h>
void
TagLoadConfig
()
TagLoadConfig
(
const
ConfigData
&
config
)
{
const
char
*
value
=
config
_get_s
tring
(
ConfigOption
::
METADATA_TO_USE
);
const
char
*
value
=
config
.
GetS
tring
(
ConfigOption
::
METADATA_TO_USE
);
if
(
value
==
nullptr
)
return
;
...
...
src/tag/Config.hxx
View file @
24a86dce
...
...
@@ -20,7 +20,9 @@
#ifndef MPD_TAG_CONFIG_HXX
#define MPD_TAG_CONFIG_HXX
struct
ConfigData
;
void
TagLoadConfig
();
TagLoadConfig
(
const
ConfigData
&
config
);
#endif
test/DumpDatabase.cxx
View file @
24a86dce
...
...
@@ -126,7 +126,7 @@ try {
ReadConfigFile
(
config_path
);
TagLoadConfig
();
TagLoadConfig
(
GetGlobalConfig
()
);
MyDatabaseListener
database_listener
;
...
...
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