Commit 24a86dce authored by Max Kellermann's avatar Max Kellermann

tag/Config: use struct ConfigData

parent 0209bc4b
...@@ -500,7 +500,7 @@ try { ...@@ -500,7 +500,7 @@ try {
glue_daemonize_init(&options); glue_daemonize_init(&options);
#endif #endif
TagLoadConfig(); TagLoadConfig(GetGlobalConfig());
log_init(options.verbose, options.log_stderr); log_init(options.verbose, options.log_stderr);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "Config.hxx" #include "Config.hxx"
#include "Settings.hxx" #include "Settings.hxx"
#include "ParseName.hxx" #include "ParseName.hxx"
#include "config/Global.hxx" #include "config/Data.hxx"
#include "config/Option.hxx" #include "config/Option.hxx"
#include "util/Alloc.hxx" #include "util/Alloc.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
#include <stdlib.h> #include <stdlib.h>
void void
TagLoadConfig() TagLoadConfig(const ConfigData &config)
{ {
const char *value = config_get_string(ConfigOption::METADATA_TO_USE); const char *value = config.GetString(ConfigOption::METADATA_TO_USE);
if (value == nullptr) if (value == nullptr)
return; return;
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
#ifndef MPD_TAG_CONFIG_HXX #ifndef MPD_TAG_CONFIG_HXX
#define MPD_TAG_CONFIG_HXX #define MPD_TAG_CONFIG_HXX
struct ConfigData;
void void
TagLoadConfig(); TagLoadConfig(const ConfigData &config);
#endif #endif
...@@ -126,7 +126,7 @@ try { ...@@ -126,7 +126,7 @@ try {
ReadConfigFile(config_path); ReadConfigFile(config_path);
TagLoadConfig(); TagLoadConfig(GetGlobalConfig());
MyDatabaseListener database_listener; MyDatabaseListener database_listener;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment