aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* New command searchaddplgeneticdrift2012-06-271-0/+28
| | | | Search and add search result to a stored playlist.
* New command searchadd similar to command findadd.geneticdrift2012-06-271-0/+26
|
* command: read arbitrary local files with "lsinfo"Max Kellermann2012-03-061-1/+22
| | | | Requires UNIX domain socket connection.
* playlist_edit: move UID check to client_allow_file()Max Kellermann2012-03-061-11/+15
|
* command, ack: add ack_quark()Max Kellermann2012-03-061-0/+4
| | | | To pass ack values around.
* use g_strerror() instead of strerror()Max Kellermann2012-03-061-1/+2
| | | | Make sure we get a UTF-8 encoded string.
* command: fix the "DENIED" ACK codeMax Kellermann2012-03-061-1/+1
| | | | Use ACK_ERROR_PERMISSION instead of ACK_ERROR_NO_EXIST.
* command: move code to protocol/argparser.cMax Kellermann2012-02-141-166/+1
|
* command: use standard error messages in check_int()Max Kellermann2012-02-141-49/+27
|
* command: check for empty string after strtol()Max Kellermann2012-02-141-7/+7
| | | | An empty string is obviously not a valid integer.
* command: parse unsigned integers and booleans where applicableMax Kellermann2012-02-141-67/+39
|
* command: move functions to protocol/result.cMax Kellermann2012-02-141-31/+1
|
* command: eliminate local buffer "unknown"Max Kellermann2012-02-141-2/+1
|
* command: new command "config"Max Kellermann2012-02-131-0/+19
|
* client: add function client_is_local()Max Kellermann2012-02-131-1/+1
|
* command: never print "bad name" in response to "load"Max Kellermann2012-02-131-5/+14
| | | | Work around a confusing error message.
* command: add optional range parameter to "load"Max Kellermann2012-02-091-4/+13
|
* playlist_save: add start/end_index parametersMax Kellermann2012-02-091-1/+2
|
* playlist_queue: add start/end_index parametersMax Kellermann2012-02-091-1/+3
|
* directory: require the caller to lock the db_mutexMax Kellermann2012-02-021-0/+4
| | | | | Reduce the number of lock/unlock cycles, and make database handling safer.
* command: new command "seekcur"Max Kellermann2011-12-241-0/+16
| | | | For simpler seeking within current song.
* db_print: move code to function db_selection_print()Max Kellermann2011-09-131-9/+6
| | | | Use it in handle_lsinfo(), and eliminate some duplicate code.
* database: don't allow uri==NULLMax Kellermann2011-09-131-6/+6
| | | | Add nonnull attributes and fix all callers.
* database: generate GError when database is disabledMax Kellermann2011-09-131-0/+6
|
* database: add struct db_visitorMax Kellermann2011-09-131-48/+43
| | | | Use this struct for db_walk().
* stored_playlist: return GError, code is playlist_resultMax Kellermann2011-09-111-51/+72
| | | | | Improve error reporting and handling. command.c gets the new function print_error(), which sends a GError to the client.
* dbUtils: move code to db_print.cMax Kellermann2011-09-061-0/+1
|
* dbUtils: pass player_control to findAddIn()Max Kellermann2011-09-051-1/+1
| | | | Allow calling findAddIn() without a client object.
* queue: implement song "priorities"Max Kellermann2011-07-191-0/+64
| | | | | Sorts remaining songs by priority. This can be used for the much-demanded "queue feature".
* Merge branch 'v0.16.x'Max Kellermann2011-04-121-1/+1
|\ | | | | | | | | | | Conflicts: NEWS configure.ac
| * Merge branch 'v0.15.x' into v0.16.xMax Kellermann2011-04-121-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/listen.c
| | * command: fix return value of handle_currentsong()Max Kellermann2011-03-231-1/+1
| | | | | | | | | | | | Thanks to clang for complaining.
* | | Merge commit 'release-0.16.2'Max Kellermann2011-03-191-1/+1
|\| | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.am NEWS configure.ac
| * | command: print playlist load errorMax Kellermann2011-03-181-1/+1
| | | | | | | | | | | | Call print_playlist_result() instead of casting the enum implicitly.
* | | command: "update" and "rescan" need only "CONTROL" permissionMax Kellermann2011-02-271-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."
* | | protocol: support client-to-client communicationMax Kellermann2011-01-291-0/+172
| | |
* | | client_idle: add header client_idle.hMax Kellermann2011-01-291-0/+1
| | |
* | | copyright year 2011Max Kellermann2011-01-291-1/+1
| | |
* | | player_control: removed the global variable "pc"Max Kellermann2011-01-101-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.
* | | playlist_song: add flag "secure"Max Kellermann2010-12-231-1/+1
|/ / | | | | | | | | | | Optionally allow all local files. "Insecure" mode is used for printing playlists.
* | command: don't error when sticker list is run on song with no stickersAnton Khirnov2010-12-071-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.
* | command: fallback strftime() formats on WIN32Max Kellermann2010-05-181-2/+4
| | | | | | | | On WIN32, "%F" and "%T" are not implemented.
* | Add support for MixRamp tagsTim Phipps2010-03-211-0/+49
| | | | | | | | | | Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
* | command: allow "update" with slash or empty pathMax Kellermann2010-03-121-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.
* | command: "update" checks if the path is malformedMax Kellermann2010-02-271-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.
* | command: "listplaylist" dumps playlist filesMax Kellermann2010-02-081-0/+6
| | | | | | | | Same for "listplaylistinfo".
* | replay_gain: moved code to replay_gain_config.cMax Kellermann2010-01-041-1/+1
| |
* | Update copyright notices.Avuton Olrich2009-12-311-1/+1
| |
* | audio_format: added function audio_format_to_string()Max Kellermann2009-11-141-4/+5
| | | | | | | | | | Unified function for converting an audio_format object to a string, for log messages and for the "status" command.
* | include config.h in all sourcesMax Kellermann2009-11-121-1/+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.