aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | command: added command "decoders"Max Kellermann2009-11-071-0/+10
| | | | | | | | | | This command prints a list of decoder plugins and their suffixes / MIME types.
* | sticker comments in code and example configuration fileRomain Bignon2009-11-041-0/+5
| | | | | | | | Signed-off-by: Romain Bignon <romain@peerfuse.org>
* | command: omitting the range end is possibleMax Kellermann2009-10-181-1/+4
| | | | | | | | | | When the range end is missing, then the maximum possible value is assumed.
* | command: use GLib limit macros in check_range()Max Kellermann2009-10-181-10/+10
| | | | | | | | These are portable and don't require limits.h.
* | command: allow changing replay gain mode on-the-flyMax Kellermann2009-10-171-0/+27
| | | | | | | | | | The new command "replay_gain_mode" allows the user to switch the replay gain mode on-the-fly. No more mpd.conf editing.
* | command: "load" supports remote playlists (m3u, xspf, lastfm://)Max Kellermann2009-10-131-0/+5
| | | | | | | | | | | | This patch integrates the playlist plugin API to the MPD core. We'll be able to do much more in the future with that API, that's just the beginning.
* | song: renamed attribute "url" to "uri"Max Kellermann2009-10-131-1/+1
| |
* | tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann2009-10-131-3/+3
| |
* | player_control: no CamelCaseMax Kellermann2009-10-081-8/+8
| |
* | player_control: bundle "get" functions in pc_get_status()Max Kellermann2009-10-081-8/+13
| | | | | | | | | | | | The new player_status struct replaces a bunch of playerGetX() functions. When we add proper locking to the player_control struct, we will only need to lock once for the "status" command.
* | player_control: allocate getPlayerErrorStr() resultMax Kellermann2009-10-081-2/+5
| | | | | | | | This lets us eliminate the static fixed-size buffer.
* | command: range support for "delete"Max Kellermann2009-09-301-3/+3
| |
* | command: relax requirements for unquoted wordsMax Kellermann2009-09-251-1/+1
| | | | | | | | | | | | Allow most printable characters in unquoted words. The tokenizer patch introduced very strict requirements for command parameters - those were undocumented, and we're reverting the strictness now.
* | command: added command "rescan"Max Kellermann2009-09-241-1/+23
| | | | | | | | | | "rescan" is the same as "update", but it discards existing songs in the database.
* | update: pass const string to update_enqueue()Max Kellermann2009-09-241-2/+2
| | | | | | | | | | Duplicate the path string within update.c, do not expect an allocated string as parameter.
* | update: renamed directory_update_init() to update_enqueue()Max Kellermann2009-09-241-1/+1
| |
* | command: add "findadd" command.Anton Khirnov2009-08-251-0/+25
| |
* | command: moved command_process_list() to client.cMax Kellermann2009-07-291-26/+3
| |
* | playlist: CamelCaseIsBadCourtney Cavin2009-07-281-21/+21
| | | | | | | | Renamed all playlist functions to non-CamelCase.
* | command: use the tokenizer libraryMax Kellermann2009-07-191-4/+50
| |
* | playlist: no CamelCaseMax Kellermann2009-07-141-12/+12
| |