MPD  0.20.18
ConfigOption.hxx
Go to the documentation of this file.
1 /*
2  * Copyright 2003-2017 The Music Player Daemon Project
3  * http://www.musicpd.org
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef MPD_CONFIG_OPTION_HXX
21 #define MPD_CONFIG_OPTION_HXX
22 
23 #include "Compiler.h"
24 
25 #if defined(_WIN32) && CLANG_OR_GCC_VERSION(4,7)
26 /* "INPUT" is declared by winuser.h */
27 #pragma GCC diagnostic push
28 #pragma GCC diagnostic ignored "-Wshadow"
29 #endif
30 
31 enum class ConfigOption {
32  MUSIC_DIR,
36  DB_FILE,
38  LOG_FILE,
39  PID_FILE,
40  STATE_FILE,
43  USER,
44  GROUP,
46  PORT,
47  LOG_LEVEL,
50  PASSWORD,
53  MIXER_TYPE,
54  REPLAYGAIN,
67  MAX_CONN,
71  FS_CHARSET,
81  MAX
82 };
83 
84 enum class ConfigBlockOption {
86  DECODER,
87  INPUT,
89  RESAMPLER,
91  DATABASE,
92  NEIGHBORS,
93  MAX
94 };
95 
96 #if defined(_WIN32) && CLANG_OR_GCC_VERSION(4,7)
97 #pragma GCC diagnostic pop
98 #endif
99 
103 gcc_pure
104 enum ConfigOption
105 ParseConfigOptionName(const char *name) noexcept;
106 
110 gcc_pure
112 ParseConfigBlockOptionName(const char *name) noexcept;
113 
114 #endif
ConfigBlockOption
ConfigOption
gcc_pure enum ConfigBlockOption ParseConfigBlockOptionName(const char *name) noexcept
gcc_pure enum ConfigOption ParseConfigOptionName(const char *name) noexcept
#define gcc_pure
Definition: Compiler.h:116
const Partition const char * name
Definition: Count.hxx:34