| Commit message (Collapse) | Author | Files | Lines |
|
The new block overrides the "db_file" setting, and allows configuring
any database plugin.
|
|
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.
|
|
Make sure we get a UTF-8 encoded string.
|
|
|
|
No writers.
|
|
|
|
Better error messages.
|
|
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.
|
|
No caller needs to write.
|
|
config_add_block_param() cannot fail, which makes it easier to use.
|
|
Reduce indent.
|
|
This patch seems a bit ugly, maybe it would be a bit cleaner with gotos.
|
|
Used to connect and authenticate to despotify. Provides a singleton
session and a desptoify-track-to-tags function.
|
|
When set, MPD will not auto-start playback on startup; it will be in
"paused" state.
|
|
|
|
Replace g_strchug() calls with a cheaper implementation.
|
|
|
|
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.
|
|
|
|
Limits the depth of the watched directories. This is useful to keep
resource usage down and speed up MPD startup.
|
|
|
|
|
|
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.
|
|
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.
|
|
No CamelCase. Use bool instead of int. Make both arguments
mandatory.
|
|
|
|
This patch completes the configuration support.
|
|
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.
|
|
|
|
This option was deprecated by the 0.15 release. This patch makes this
option invalid.
|
|
|
|
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).
|
|
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).
|
|
Add this option to the user's manual.
|
|
|
|
|
|
Moved the check from config_get_block_param(). Detect the duplicate
parameter when it's added, not when it's queried.
|
|
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.
|
|
|
|
Initialize the config_entries array at compile time. This is not only
faster, but also smaller.
|
|
This function is unused.
|
|
Due to padding, this takes the same amount of memory.
|
|
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.
|
|
|
|
|
|
Renamed all remaining CamelCase functions.
|
|
strcasecmp() is locale dependent, making it a bad choice for internal
string comparisons.
|
|
|
|
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.
|
|
Allow input plugins to configure with an "input" block in mpd.conf.
Also allow the user to disable a plugin completely.
|