Partition: pass configuration as struct

This commit is contained in:
Max Kellermann
2021-12-03 20:22:52 +01:00
parent 2384a240e0
commit 95a155b10d
15 changed files with 230 additions and 105 deletions

View File

@@ -33,6 +33,7 @@
#include "config/Data.hxx"
#include "config/Option.hxx"
#include "config/Defaults.hxx"
#include "config/QueueConfig.hxx"
#include "Idle.hxx"
#include "fs/Limits.hxx"
#include "fs/Traits.hxx"
@@ -55,7 +56,7 @@ spl_global_init(const ConfigData &config)
{
playlist_max_length =
config.GetPositive(ConfigOption::MAX_PLAYLIST_LENGTH,
DEFAULT_PLAYLIST_MAX_LENGTH);
QueueConfig::DEFAULT_MAX_LENGTH);
playlist_saveAbsolutePaths =
config.GetBool(ConfigOption::SAVE_ABSOLUTE_PATHS,