aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ConfigFile.cxx6
-rw-r--r--src/ConfigTemplates.hxx (renamed from src/ConfigOptions.hxx)8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/ConfigFile.cxx b/src/ConfigFile.cxx
index c49e4a486..2c8238c2f 100644
--- a/src/ConfigFile.cxx
+++ b/src/ConfigFile.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "conf.h"
-#include "ConfigOptions.hxx"
+#include "ConfigTemplates.hxx"
extern "C" {
#include "utils.h"
@@ -46,7 +46,7 @@ extern "C" {
#define CONF_COMMENT '#'
-static GSList *config_params[G_N_ELEMENTS(config_options)];
+static GSList *config_params[G_N_ELEMENTS(config_templates)];
static bool
get_bool(const char *value, bool *value_r)
@@ -318,7 +318,7 @@ ReadConfigFile(const Path &path, GError **error_r)
return false;
}
- const ConfigOption &option = config_options[i];
+ const ConfigTemplate &option = config_templates[i];
GSList *&params = config_params[i];
if (params != NULL && !option.repeatable) {
diff --git a/src/ConfigOptions.hxx b/src/ConfigTemplates.hxx
index 5e2ec1891..8592070cd 100644
--- a/src/ConfigOptions.hxx
+++ b/src/ConfigTemplates.hxx
@@ -23,13 +23,13 @@
#include <string.h>
-struct ConfigOption {
+struct ConfigTemplate {
const char *const name;
const bool repeatable;
const bool block;
};
-static constexpr struct ConfigOption config_options[] = {
+static constexpr struct ConfigTemplate config_templates[] = {
{ CONF_MUSIC_DIR, false, false },
{ CONF_PLAYLIST_DIR, false, false },
{ CONF_FOLLOW_INSIDE_SYMLINKS, false, false },
@@ -90,8 +90,8 @@ gcc_pure
static int
ConfigFindByName(const char *name)
{
- for (unsigned i = 0; i < G_N_ELEMENTS(config_options); ++i)
- if (strcmp(config_options[i].name, name) == 0)
+ for (unsigned i = 0; i < G_N_ELEMENTS(config_templates); ++i)
+ if (strcmp(config_templates[i].name, name) == 0)
return i;
return -1;