aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigFile.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-09string_util: convert to C++Max Kellermann1-5/+1
2013-04-08tokenizer: convert to C++Max Kellermann1-13/+17
2013-02-02ConfigFile.cxx: use FOpenModeDenis Krjuchkov1-1/+1
2013-01-30ConfigData: use simple linked list instead of GSListMax Kellermann1-5/+18
2013-01-30ConfigData: move functions into the classMax Kellermann1-2/+2
2013-01-30ConfigData: add constructors/destructorsMax Kellermann1-5/+5
2013-01-30conf.h: move the GQuark to ConfigQuark.hxxMax Kellermann1-0/+1
2013-01-30ConfigFile: simplify error cleanupMax Kellermann1-23/+24
2013-01-30ConfigFile: move code to ConfigGlobal.cxxMax Kellermann1-161/+4
2013-01-30ConfigFile: add struct ConfigDataMax Kellermann1-9/+8
2013-01-30conf: move struct definitions to ConfigData.hxxMax Kellermann1-166/+1
2013-01-30ConfigFile: add enum ConfigOptionMax Kellermann1-26/+22
Look up top-level config options by enum (= integer), not by name string.
2013-01-30ConfigOption: rename to ConfigTemplateMax Kellermann1-3/+3
2013-01-30ConfigFile: move code to ConfigOptions.cxxMax Kellermann1-73/+1
2013-01-30ConfigFile: split config_entryMax Kellermann1-39/+27
The new struct ConfigOption is the compile-time description, and the global array "config_params" contains the actual values.
2013-01-29ConfigFile, CommandLine: use the Path classMax Kellermann1-4/+8
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-17path: convert to C++Max Kellermann1-1/+1
2013-01-10conf: convert to C++Max Kellermann1-63/+73
2012-08-08conf: add a "database" blockMax Kellermann1-0/+1
The new block overrides the "db_file" setting, and allows configuring any database plugin.
2012-07-10require GLib 2.16Max Kellermann1-1/+0
GLib 2.16 was released more than 4 years ago. Let's remove some cruft from the glib_compat.h header, and avoid new cruft to it.
2012-03-06use g_strerror() instead of strerror()Max Kellermann1-1/+1
Make sure we get a UTF-8 encoded string.
2011-09-09conf: export config_param_free()Max Kellermann1-1/+1
2011-09-09conf: _get_next_param() returns a const pointerMax Kellermann1-1/+1
No writers.
2011-09-09conf: add config_dup_block_path()Max Kellermann1-0/+20
2011-09-09utils: parsePath() returns GError on failureMax Kellermann1-4/+4
Better error messages.
2011-09-09conf: turn config_get_path() into config_dup_path()Max Kellermann1-10/+11
config_get_path() was somewhat flawed, because it pretended to be a function, when it really had a side effect. The second flaw was that it did not return the parser error, instead it aborted the whole process, which is bad style. The new function returns a duplicated (modified) string that must be freed by the caller, and returns a GError on failure.
2011-09-09conf: get_block_param() returns a const pointerMax Kellermann1-4/+4
No caller needs to write.
2011-09-09conf: move duplicate check to _read_name_value()Max Kellermann1-14/+13
config_add_block_param() cannot fail, which makes it easier to use.
2011-09-09conf: move code to config_read_name_value()Max Kellermann1-32/+34
Reduce indent.
2011-07-18conf: add missing fclose in error pathJonathan Neuschäfer1-1/+10
This patch seems a bit ugly, maybe it would be a bit cleaner with gotos.
2011-03-29despotify: Add support utilitiesSimon Kagstrom1-0/+3
Used to connect and authenticate to despotify. Provides a singleton session and a desptoify-track-to-tags function.
2011-02-23playlist_state: add option "restore_paused"Max Kellermann1-0/+1
When set, MPD will not auto-start playback on startup; it will be in "paused" state.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-23string_util: add function strchug_fast()Max Kellermann1-4/+4
Replace g_strchug() calls with a cheaper implementation.
2010-12-23utils: move string_array_contains() to string_util.cMax Kellermann1-0/+1
2010-09-25eliminate g_error() usageThomas Jansen1-13/+15
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
2010-05-30filter/replay_gain: added option "replaygain_limit"Daniel Seuthe1-0/+1
2010-04-13inotify: added setting "auto_update_depth"Max Kellermann1-0/+1
Limits the depth of the watched directories. This is useful to keep resource usage down and speed up MPD startup.
2010-04-13conf: added function config_get_unsigned()Max Kellermann1-0/+17
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-11-10configure.ac: require GLib 2.12Max Kellermann1-0/+1
Drop the required GLib version from 2.16 to 2.12, because many current systems still don't have GLib 2.16. This requires several new compatibility functions in glib_compat.h.
2009-11-06utils: renamed stringFoundInStringArray()Max Kellermann1-10/+0
No CamelCase. Use bool instead of int. Make both arguments mandatory.
2009-10-26mpd.conf: new bool config value for enabling/disabling inotify updateViliam Mateicka1-0/+1
2009-10-13playlist_list: pass configuration to playlist pluginsMax Kellermann1-0/+1
This patch completes the configuration support.
2009-09-24conf: handle fatal errors with GErrorMax Kellermann1-43/+104
Don't call g_error(), which will abort the process and dump core. This patch does not affect all the config_get_X() functions. These need some more refactoring.
2009-09-24conf: splitted function config_param_free()Max Kellermann1-4/+11
2009-08-24conf: removed the deprecated "error_file" optionMax Kellermann1-1/+0
This option was deprecated by the 0.15 release. This patch makes this option invalid.
2009-07-19conf: use the tokenizer libraryMax Kellermann1-62/+82