aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* conf: use the tokenizer libraryMax Kellermann2009-07-191-62/+82
|
* daemon: added "group" configuration optionMichal Nazarewicz2009-07-191-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).
* conf: use bp->value, not param->valueMax Kellermann2009-07-061-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).
* conf: registered option "filter"Max Kellermann2009-07-051-0/+1
| | | | Add this option to the user's manual.
* conf: log unused/unknown block parametersMax Kellermann2009-06-251-0/+29
|
* conf: added "used" flag to struct block_paramMax Kellermann2009-06-251-1/+4
|
* conf: detect duplicate parameters in config_add_block_param()Max Kellermann2009-06-251-9/+9
| | | | | Moved the check from config_get_block_param(). Detect the duplicate parameter when it's added, not when it's queried.
* conf: make get_bool() return a boolMax Kellermann2009-06-251-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.
* conf: moved code from get_bool() to string_array_contains()Max Kellermann2009-06-251-9/+16
|
* conf: register configuration options staticallyMax Kellermann2009-06-251-94/+57
| | | | | Initialize the config_entries array at compile time. This is not only faster, but also smaller.
* conf: removed config_add_param()Max Kellermann2009-06-251-9/+0
| | | | This function is unused.
* conf: replace "mask" bit field with two "bool" variablesMax Kellermann2009-06-251-12/+6
| | | | Due to padding, this takes the same amount of memory.
* volume: removed support for legacy mixer configurationMax Kellermann2009-06-251-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.
* Preamp for missing replay-gainDaniel Seuthe2009-06-251-0/+1
|
* conf: make config_param.num_block_params unsignedMax Kellermann2009-06-031-4/+2
|
* conf: eliminated CamelCaseMax Kellermann2009-06-031-12/+12
| | | | Renamed all remaining CamelCase functions.
* conf: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann2009-04-281-2/+2
| | | | | strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
* conf: config_param_free() not necessary for export.Avuton Olrich2009-03-301-1/+1
|
* all: Update copyright header.Avuton Olrich2009-03-131-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.
* input: pass config_param to input_plugin.init()Max Kellermann2009-03-021-0/+1
| | | | | Allow input plugins to configure with an "input" block in mpd.conf. Also allow the user to disable a plugin completely.
* added G_LOG_DOMAIN macros to several librariesMax Kellermann2009-02-191-0/+3
| | | | | Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log.
* conf: log the effective configuration file nameMax Kellermann2009-02-191-0/+2
| | | | | For better debugging aid when something goes wrong, log the name of the effective configuration file.
* decoder_list: added configuration block "decoder"Max Kellermann2009-02-151-0/+1
| | | | | The "decoder" configuration block may contain the configuration of one decoder plugin.
* conf: added config_add_param()Max Kellermann2009-01-251-0/+10
| | | | | The function config_add_param() allows adding new configuration parameters.
* conf: allow param==NULLMax Kellermann2009-01-251-0/+3
| | | | | | | | Return the default value in the conf_get_block_*() functions when param==NULL was passed. This simplifies a lot of code, because all initialization can be done in one code path, regardless whether configuration is present.
* conf: const pointers in block get functionsMax Kellermann2009-01-251-8/+8
| | | | | All config_get_block_*() functions should accept constant config_param pointers.
* conf: added config_get_positive()Max Kellermann2009-01-211-0/+20
| | | | | This convenience function parses a configuration value into a positive integer. It aborts if parsing fails.
* sticker: new library for storing dynamic information about songsMax Kellermann2009-01-191-0/+1
| | | | | | | "Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them.
* conf: added config_get_block_unsigned()Max Kellermann2009-01-181-0/+22
| | | | Eliminate some more getBlockParam() invocations.
* conf: added config_get_block_string()Max Kellermann2009-01-181-0/+12
| | | | This replaces lots of getBlockParam() invocations.
* conf: removed parseConfigFilePath()Max Kellermann2009-01-181-23/+0
| | | | Use config_get_path() instead in mapper.c.
* conf: added config_get_path()Max Kellermann2009-01-181-0/+18
| | | | config_get_path() is an simpler interface than parseConfigFilePath().
* conf: replaced getConfigParamValue() with config_get_string()Max Kellermann2009-01-171-3/+4
| | | | Don't return a writable pointer.
* conf: replaced getBoolBlockParam() with config_get_block_bool()Max Kellermann2009-01-171-10/+14
| | | | No "force" parameter, pass a default value instead.
* conf: use config_get_bool() instead of getBoolConfigParam()Max Kellermann2009-01-171-13/+7
|
* conf: no CamelCase, part IMax Kellermann2009-01-171-51/+61
| | | | Renamed functions, types, variables.
* removing mixer_reconfigure memmory leak, fixing configure of alsa and oss ↵Viliam Mateicka2009-01-111-1/+1
| | | | mixer (passing parameters)
* conf: use GLib instead of utils.hMax Kellermann2009-01-031-12/+9
|
* conf: use GLib's GSList libraryMax Kellermann2009-01-021-35/+54
| | | | Use GLib's singly-linked list library instead of our custom one.
* exporting functionsViliam Mateicka2008-12-311-2/+2
|
* removed os_compat.hMax Kellermann2008-12-291-1/+2
| | | | | Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
* conf: use GLib instead of utils.h/log.hMax Kellermann2008-12-281-36/+37
|
* utils: removed myFgets()Max Kellermann2008-12-281-2/+3
| | | | Replaced myFgets() with fgets() + g_strchomp().
* Remove obsolete http_buffer* stuff that went away with the new curl backend.Avuton Olrich2008-12-201-2/+0
|
* update: added options which control symlink behaviourRaphaël Rigo2008-11-281-0/+2
| | | | | | | | | The configuration options "follow_outside_symlinks" and "follow_inside_symlinks" let the user control whether MPD should follow symbolic links in the music directory. [mk: converted variables to "bool"; moved configuration to update_global_init()]
* conf: added config_get_bool()Max Kellermann2008-11-271-0/+10
| | | | | | In contrast to, getBoolConfigParam(), config_get_bool() properly returns a "bool" value. In case of "unset", it returns the default value provided by the caller.
* fix -Wconst warningsMax Kellermann2008-02-051-8/+8
| | | | | | [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Cleanup #includes of standard system headers and put them in one placeEric Wong2008-01-031-9/+1
| | | | | | | | | | | | | This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Merge branches/ew r7104Eric Wong2007-12-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thread-safety work in preparation for rewrite to use pthreads Expect no regressions against trunk (r7078), possibly minor performance improvements in update (due to fewer heap allocations), but increased stack usage. Applied the following patches: * maxpath_str for reentrancy (temporary fix, reverted) * path: start working on thread-safe variants of these methods * Re-entrancy work on path/character-set conversions * directory.c: exploreDirectory() use reentrant functions here * directory/update: more use of reentrant functions + cleanups * string_toupper: a strdup-less version of strDupToUpper * get_song_url: a static-variable-free version of getSongUrl() * Use reentrant/thread-safe get_song_url everywhere * replace rmp2amp with the reentrant version, rmp2amp_r * Get rid of the non-reentrant/non-thread-safe rpp2app, too. * buffer2array: assert strdup() returns a usable value in unit tests * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants * fix storing playlists w/o absolute paths * parent_path(), a reentrant version of parentPath() * parentPath => parent_path for reentrancy and thread-safety * allow "make test" to automatically run embedded unit tests * remove convStrDup() and maxpath_str() * use MPD_PATH_MAX everywhere instead of MAXPATHLEN * path: get rid of appendSlash, pfx_path and just use pfx_dir * get_song_url: fix the ability to play songs in the top-level music_directory git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* conf.c: remove extra semi-colon here, tooEric Wong2007-09-101-1/+1
| | | git-svn-id: https://svn.musicpd.org/mpd/trunk@6874 09075e82-0dd4-0310-85a5-a0d7c8717e4f