aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2009-07-19daemon: added "group" configuration optionMichal Nazarewicz1-0/+1
The "group" configuration option is similar to "user" as it sets user set what group MPD shall run as. With "user" option, MPD changed GID to the GID of the user, however, more control could be desired. Moreover, the patch changes the way of checking whether no setuid(2)/setgid(2) is required -- previously user names were compered, now UID and GIDs are compered (ie. the one we already have (getuid(2)/getgid(2)) with the one we want to change to).
2009-07-06conf: use bp->value, not param->valueMax Kellermann1-1/+1
A recent change to the boolean parser introduced a bug: instead of using the block_param's value with get_bool(), we passed param->value (which is always NULL in this case).
2009-07-05conf: registered option "filter"Max Kellermann1-0/+1
Add this option to the user's manual.
2009-06-25conf: log unused/unknown block parametersMax Kellermann1-0/+29
2009-06-25conf: added "used" flag to struct block_paramMax Kellermann1-1/+4
2009-06-25conf: detect duplicate parameters in config_add_block_param()Max Kellermann1-9/+9
Moved the check from config_get_block_param(). Detect the duplicate parameter when it's added, not when it's queried.
2009-06-25conf: make get_bool() return a boolMax Kellermann1-19/+18
Instead of returning an artificial three-state integer, return a "success" value and put the boolean value into a "bool" pointer. That's a little bit more overhead, but an API which looks more natural.
2009-06-25conf: moved code from get_bool() to string_array_contains()Max Kellermann1-9/+16
2009-06-25conf: register configuration options staticallyMax Kellermann1-94/+57
Initialize the config_entries array at compile time. This is not only faster, but also smaller.
2009-06-25conf: removed config_add_param()Max Kellermann1-9/+0
This function is unused.
2009-06-25conf: replace "mask" bit field with two "bool" variablesMax Kellermann1-12/+6
Due to padding, this takes the same amount of memory.
2009-06-25volume: removed support for legacy mixer configurationMax Kellermann1-2/+0
The top-level "mixer_device" and "mixer_control" options have been deprecated by MPD 0.15, and it's safe to remove them in MPD 0.16.
2009-06-25Preamp for missing replay-gainDaniel Seuthe1-0/+1
2009-06-03conf: make config_param.num_block_params unsignedMax Kellermann1-4/+2
2009-06-03conf: eliminated CamelCaseMax Kellermann1-12/+12
Renamed all remaining CamelCase functions.
2009-04-28conf: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann1-2/+2
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
2009-03-30conf: config_param_free() not necessary for export.Avuton Olrich1-1/+1
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-03-02input: pass config_param to input_plugin.init()Max Kellermann1-0/+1
Allow input plugins to configure with an "input" block in mpd.conf. Also allow the user to disable a plugin completely.