MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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,
33 PLAYLIST_DIR,
34 FOLLOW_INSIDE_SYMLINKS,
35 FOLLOW_OUTSIDE_SYMLINKS,
36 DB_FILE,
37 STICKER_FILE,
38 LOG_FILE,
39 PID_FILE,
40 STATE_FILE,
41 STATE_FILE_INTERVAL,
42 RESTORE_PAUSED,
43 USER,
44 GROUP,
45 BIND_TO_ADDRESS,
46 PORT,
47 LOG_LEVEL,
48 ZEROCONF_NAME,
49 ZEROCONF_ENABLED,
50 PASSWORD,
51 DEFAULT_PERMS,
52 AUDIO_OUTPUT_FORMAT,
53 MIXER_TYPE,
54 REPLAYGAIN,
55 REPLAYGAIN_PREAMP,
56 REPLAYGAIN_MISSING_PREAMP,
57 REPLAYGAIN_LIMIT,
58 VOLUME_NORMALIZATION,
59 SAMPLERATE_CONVERTER,
60 AUDIO_BUFFER_SIZE,
61 BUFFER_BEFORE_PLAY,
62 HTTP_PROXY_HOST,
63 HTTP_PROXY_PORT,
64 HTTP_PROXY_USER,
65 HTTP_PROXY_PASSWORD,
66 CONN_TIMEOUT,
67 MAX_CONN,
68 MAX_PLAYLIST_LENGTH,
69 MAX_COMMAND_LIST_SIZE,
70 MAX_OUTPUT_BUFFER_SIZE,
71 FS_CHARSET,
72 ID3V1_ENCODING,
73 METADATA_TO_USE,
74 SAVE_ABSOLUTE_PATHS,
75 GAPLESS_MP3_PLAYBACK,
76 AUTO_UPDATE,
77 AUTO_UPDATE_DEPTH,
78 DESPOTIFY_USER,
79 DESPOTIFY_PASSWORD,
80 DESPOTIFY_HIGH_BITRATE,
81 MAX
82 };
83
84 enum class ConfigBlockOption {
85 AUDIO_OUTPUT,
86 DECODER,
87 INPUT,
88 PLAYLIST_PLUGIN,
89 RESAMPLER,
90 AUDIO_FILTER,
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);
106
110 gcc_pure
111 enum ConfigBlockOption
112 ParseConfigBlockOptionName(const char *name);
113
114 #endif
ConfigOption::RESTORE_PAUSED
ConfigOption::MAX
ConfigOption::HTTP_PROXY_USER
ConfigBlockOption::RESAMPLER
ConfigOption::ID3V1_ENCODING
ConfigBlockOption::DATABASE
ConfigOption::HTTP_PROXY_PASSWORD
ConfigOption::PLAYLIST_DIR
ConfigOption::MAX_PLAYLIST_LENGTH
ConfigBlockOption::MAX
ConfigOption::AUDIO_BUFFER_SIZE
ConfigOption::BUFFER_BEFORE_PLAY
ConfigOption::AUTO_UPDATE
ConfigBlockOption::PLAYLIST_PLUGIN
ConfigOption::BIND_TO_ADDRESS
ConfigOption::DESPOTIFY_HIGH_BITRATE
ParseConfigBlockOptionName
gcc_pure enum ConfigBlockOption ParseConfigBlockOptionName(const char *name)
ConfigOption::FOLLOW_INSIDE_SYMLINKS
ConfigOption::MAX_CONN
ConfigOption::HTTP_PROXY_HOST
ConfigOption::MIXER_TYPE
ConfigBlockOption::DECODER
ConfigBlockOption
ConfigBlockOption
Definition: ConfigOption.hxx:84
ConfigOption::AUTO_UPDATE_DEPTH
ConfigBlockOption::AUDIO_FILTER
ConfigOption::STICKER_FILE
ConfigOption::DESPOTIFY_PASSWORD
Compiler.h
ConfigOption::SAVE_ABSOLUTE_PATHS
ConfigOption::LOG_LEVEL
ConfigOption::USER
ConfigOption::AUDIO_OUTPUT_FORMAT
ConfigOption::MAX_COMMAND_LIST_SIZE
ConfigOption::PORT
ConfigOption::STATE_FILE_INTERVAL
ConfigBlockOption::NEIGHBORS
ConfigOption::HTTP_PROXY_PORT
ConfigOption::REPLAYGAIN_MISSING_PREAMP
ConfigOption
ConfigOption
Definition: ConfigOption.hxx:31
ConfigOption::ZEROCONF_ENABLED
ConfigOption::SAMPLERATE_CONVERTER
ConfigOption::GROUP
ParseConfigOptionName
gcc_pure enum ConfigOption ParseConfigOptionName(const char *name)
ConfigOption::DESPOTIFY_USER
ConfigBlockOption::INPUT
ConfigOption::VOLUME_NORMALIZATION
ConfigOption::CONN_TIMEOUT
ConfigOption::REPLAYGAIN_PREAMP
ConfigOption::GAPLESS_MP3_PLAYBACK
ConfigOption::STATE_FILE
ConfigOption::METADATA_TO_USE
ConfigOption::LOG_FILE
ConfigOption::FOLLOW_OUTSIDE_SYMLINKS
ConfigOption::DEFAULT_PERMS
gcc_pure
#define gcc_pure
Definition: Compiler.h:116
ConfigOption::MAX_OUTPUT_BUFFER_SIZE
ConfigOption::DB_FILE
ConfigOption::REPLAYGAIN
ConfigOption::ZEROCONF_NAME
ConfigOption::MUSIC_DIR
ConfigBlockOption::AUDIO_OUTPUT
ConfigOption::PASSWORD
ConfigOption::REPLAYGAIN_LIMIT
ConfigOption::FS_CHARSET
ConfigOption::PID_FILE
name
const Partition const char * name
Definition: Count.hxx:34