aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-08-07locate: add "casefold" flag to parserMax Kellermann1-2/+2
Fold the case during construction, without having to create another copy.
2012-08-07command: move code to DatabaseCommands.cxxMax Kellermann1-238/+4
Prepare to use the DatabasePlugin C++ API directly.
2012-08-07command: move print_error() to CommandError.cxxMax Kellermann1-104/+1
Prepare for splitting command.c.
2012-07-10command: require appropriate permissions for searchadd{,pl}Jonathan Neuschäfer1-2/+2
2012-06-27New command searchaddplgeneticdrift1-0/+28
Search and add search result to a stored playlist.
2012-06-27New command searchadd similar to command findadd.geneticdrift1-0/+26
2012-03-06command: read arbitrary local files with "lsinfo"Max Kellermann1-1/+22
Requires UNIX domain socket connection.
2012-03-06playlist_edit: move UID check to client_allow_file()Max Kellermann1-11/+15
2012-03-06command, ack: add ack_quark()Max Kellermann1-0/+4
To pass ack values around.
2012-03-06use g_strerror() instead of strerror()Max Kellermann1-1/+2
Make sure we get a UTF-8 encoded string.
2012-03-06command: fix the "DENIED" ACK codeMax Kellermann1-1/+1
Use ACK_ERROR_PERMISSION instead of ACK_ERROR_NO_EXIST.
2012-02-14command: move code to protocol/argparser.cMax Kellermann1-166/+1
2012-02-14command: use standard error messages in check_int()Max Kellermann1-49/+27
2012-02-14command: check for empty string after strtol()Max Kellermann1-7/+7
An empty string is obviously not a valid integer.
2012-02-14command: parse unsigned integers and booleans where applicableMax Kellermann1-67/+39
2012-02-14command: move functions to protocol/result.cMax Kellermann1-31/+1
2012-02-14command: eliminate local buffer "unknown"Max Kellermann1-2/+1
2012-02-13command: new command "config"Max Kellermann1-0/+19
2012-02-13client: add function client_is_local()Max Kellermann1-1/+1
2012-02-13command: never print "bad name" in response to "load"Max Kellermann1-5/+14
Work around a confusing error message.
2012-02-09command: add optional range parameter to "load"Max Kellermann1-4/+13
2012-02-09playlist_save: add start/end_index parametersMax Kellermann1-1/+2
2012-02-09playlist_queue: add start/end_index parametersMax Kellermann1-1/+3
2012-02-02directory: require the caller to lock the db_mutexMax Kellermann1-0/+4
Reduce the number of lock/unlock cycles, and make database handling safer.
2011-12-24command: new command "seekcur"Max Kellermann1-0/+16
For simpler seeking within current song.
2011-09-13db_print: move code to function db_selection_print()Max Kellermann1-9/+6
Use it in handle_lsinfo(), and eliminate some duplicate code.
2011-09-13database: don't allow uri==NULLMax Kellermann1-6/+6
Add nonnull attributes and fix all callers.
2011-09-13database: generate GError when database is disabledMax Kellermann1-0/+6
2011-09-13database: add struct db_visitorMax Kellermann1-48/+43
Use this struct for db_walk().
2011-09-11stored_playlist: return GError, code is playlist_resultMax Kellermann1-51/+72
Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
2011-09-06dbUtils: move code to db_print.cMax Kellermann1-0/+1
2011-09-05dbUtils: pass player_control to findAddIn()Max Kellermann1-1/+1
Allow calling findAddIn() without a client object.
2011-07-19queue: implement song "priorities"Max Kellermann1-0/+64
Sorts remaining songs by priority. This can be used for the much-demanded "queue feature".
2011-03-23command: fix return value of handle_currentsong()Max Kellermann1-1/+1
Thanks to clang for complaining.
2011-03-18command: print playlist load errorMax Kellermann1-1/+1
Call print_playlist_result() instead of casting the enum implicitly.
2011-02-27command: "update" and "rescan" need only "CONTROL" permissionMax Kellermann1-2/+2
From http://bugs.debian.org/513291 "In mpd.conf, the "admin" permission covers updating the db and killing mpd. "Since there are quite some usecases in which the user can upload music to the mpd's directory by means of anonymous FTP or so, it is desirable that any user may issue a db update, while killing the mpd should not be possible. "I'd suggest to remove the db update from the admin group and either add it to "control" or an own group."
2011-01-29protocol: support client-to-client communicationMax Kellermann1-0/+172
2011-01-29client_idle: add header client_idle.hMax Kellermann1-0/+1
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-37/+56
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2010-12-23playlist_song: add flag "secure"Max Kellermann1-1/+1
Optionally allow all local files. "Insecure" mode is used for printing playlists.
2010-12-07command: don't error when sticker list is run on song with no stickersAnton Khirnov1-7/+3
this is inconsistent with other commands (e.g. find) and seems wrong -- a song with no stickers attached is a perfectly valid state and an empty list of stickers is also perfectly valid.
2010-05-18command: fallback strftime() formats on WIN32Max Kellermann1-2/+4
On WIN32, "%F" and "%T" are not implemented.
2010-03-21Add support for MixRamp tagsTim Phipps1-0/+49
Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
2010-03-12command: allow "update" with slash or empty pathMax Kellermann1-1/+4
When handle_update() was modified to use uri_safe_local(), suddently "mpc update ''" and "mpc update '/'" stopped working, because both are not a "safe" local URI. This patch adds a special case for these, to retain backwards compatibility.
2010-02-27command: "update" checks if the path is malformedMax Kellermann1-2/+16
This is a very basic check, which only ensures that the path does not begin with a slash, doesn't have double slashes and the special names "." and ".." are forbidden.
2010-02-08command: "listplaylist" dumps playlist filesMax Kellermann1-0/+6
Same for "listplaylistinfo".
2010-01-04replay_gain: moved code to replay_gain_config.cMax Kellermann1-1/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-14audio_format: added function audio_format_to_string()Max Kellermann1-4/+5
Unified function for converting an audio_format object to a string, for log messages and for the "status" command.