summaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-17 22:31:33 +0200
committerMax Kellermann <max@musicpd.org>2018-07-17 22:31:33 +0200
commitdd57b81989a1f7622aa5017e1edf86070fd3b061 (patch)
tree347471c7647bc5e2541f17d8494f644c172b6300 /src/PlaylistFile.cxx
parentffe6819966ea8adeb743e12324807983b22e2b9b (diff)
PlaylistFile: use struct ConfigData
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index a1b83eb41..4de73df30 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -29,7 +29,7 @@
#include "fs/io/TextFile.hxx"
#include "fs/io/FileOutputStream.hxx"
#include "fs/io/BufferedOutputStream.hxx"
-#include "config/Global.hxx"
+#include "config/Data.hxx"
#include "config/Option.hxx"
#include "config/Defaults.hxx"
#include "Idle.hxx"
@@ -55,15 +55,15 @@ static unsigned playlist_max_length;
bool playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
void
-spl_global_init(void)
+spl_global_init(const ConfigData &config)
{
playlist_max_length =
- config_get_positive(ConfigOption::MAX_PLAYLIST_LENGTH,
- DEFAULT_PLAYLIST_MAX_LENGTH);
+ config.GetPositive(ConfigOption::MAX_PLAYLIST_LENGTH,
+ DEFAULT_PLAYLIST_MAX_LENGTH);
playlist_saveAbsolutePaths =
- config_get_bool(ConfigOption::SAVE_ABSOLUTE_PATHS,
- DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS);
+ config.GetBool(ConfigOption::SAVE_ABSOLUTE_PATHS,
+ DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS);
}
bool