stored_playlist: moved configuration variables from playlist.c
Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "ls.h"
|
||||
#include "database.h"
|
||||
#include "idle.h"
|
||||
#include "conf.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/types.h>
|
||||
@@ -33,6 +34,20 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
static unsigned playlist_max_length;
|
||||
bool playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
|
||||
|
||||
void
|
||||
spl_global_init(void)
|
||||
{
|
||||
playlist_max_length = config_get_positive(CONF_MAX_PLAYLIST_LENGTH,
|
||||
DEFAULT_PLAYLIST_MAX_LENGTH);
|
||||
|
||||
playlist_saveAbsolutePaths =
|
||||
config_get_bool(CONF_SAVE_ABSOLUTE_PATHS,
|
||||
DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS);
|
||||
}
|
||||
|
||||
static struct stored_playlist_info *
|
||||
load_playlist_info(const char *parent_path_fs, const char *name_fs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user