aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
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.
2009-11-12include config.h in all sourcesMax Kellermann1-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.
2009-11-07command: added command "decoders"Max Kellermann1-0/+10
This command prints a list of decoder plugins and their suffixes / MIME types.
2009-11-04sticker comments in code and example configuration fileRomain Bignon1-0/+5
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2009-10-18command: omitting the range end is possibleMax Kellermann1-1/+4
When the range end is missing, then the maximum possible value is assumed.
2009-10-18command: use GLib limit macros in check_range()Max Kellermann1-10/+10
These are portable and don't require limits.h.
2009-10-17command: allow changing replay gain mode on-the-flyMax Kellermann1-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.
2009-10-13command: "load" supports remote playlists (m3u, xspf, lastfm://)Max Kellermann1-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.
2009-10-13song: renamed attribute "url" to "uri"Max Kellermann1-1/+1
2009-10-13tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann1-3/+3
2009-10-08player_control: no CamelCaseMax Kellermann1-8/+8
2009-10-08player_control: bundle "get" functions in pc_get_status()Max Kellermann1-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.
2009-10-08player_control: allocate getPlayerErrorStr() resultMax Kellermann1-2/+5
This lets us eliminate the static fixed-size buffer.
2009-09-30command: range support for "delete"Max Kellermann1-3/+3
2009-09-25command: relax requirements for unquoted wordsMax Kellermann1-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.
2009-09-24command: added command "rescan"Max Kellermann1-1/+23
"rescan" is the same as "update", but it discards existing songs in the database.
2009-09-24update: pass const string to update_enqueue()Max Kellermann1-2/+2
Duplicate the path string within update.c, do not expect an allocated string as parameter.
2009-09-24update: renamed directory_update_init() to update_enqueue()Max Kellermann1-1/+1
2009-08-25command: add "findadd" command.Anton Khirnov1-0/+25
2009-07-29command: moved command_process_list() to client.cMax Kellermann1-26/+3
2009-07-28playlist: CamelCaseIsBadCourtney Cavin1-21/+21
Renamed all playlist functions to non-CamelCase.
2009-07-19command: use the tokenizer libraryMax Kellermann1-4/+50
2009-07-14playlist: no CamelCaseMax Kellermann1-12/+12
2009-07-06volume: moved range check to handle_setvol()Max Kellermann1-0/+5
Converted the range checks in volume_level_change() to assertions. Changed all volume types to "unsigned", expect for those which must be able to indicate error (-1).
2009-07-06volume, mixer: removed the "relative" parameterMax Kellermann1-1/+1
Since the "volume" command has been removed, nobody uses relative volumes anymore.
2009-07-06command: removed the "volume" commandMax Kellermann1-22/+1
This command has been deprecated more than 5 years ago (0.10.0). Its implementation is a kludge, let's remove it now.
2009-06-25command: added new "status" line with more precise "elapsed time"Max Kellermann1-0/+2
2009-04-28command: added "sticker delete" commandMax Kellermann1-0/+22
2009-04-28command: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann1-1/+1
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
2009-04-01command: added command "sticker find"Max Kellermann1-0/+41
This command allows clients to search for stickers with a specified name.
2009-04-01Move db_get_song into sub-handlers. (FReq 2112)Eric Wollesen1-9/+27
db_get_song was being called once for all sub-handlers, but with the addition of the find command, we don't have a URI coming in, so doing db_get_song once won't work anymore. [mk: fixed initialization order]
2009-04-01sticker_print: new library for sending stickers to a clientMax Kellermann1-10/+3
2009-03-31do not consider single mode with "next" commandRomain Bignon1-0/+7
This is a little ugly, but as nextSongInPlaylist is both called when queued is update (in case playlist ended) and for user "next" command, there isn't any other (simple) solution
2009-03-30command: command_error() is not necessary for export.Avuton Olrich1-1/+1
2009-03-30implemented the 'consume' modeRomain Bignon1-1/+23
Consume mode removes each song played
2009-03-27renamed smartstop to single and changed behaviorRomain Bignon1-6/+6
When single mode is enabled, after current song it stops playback, or it replay same song if repeat mode is activated.
2009-03-27implements the smartstop featureRomain Bignon1-0/+22
The smartstop feature is a way to tell mpd to stop playing after current song. This patche provides: - 'state' command returns 'smartstop' state (1 or 0) - 'smartstop' can activate or not the smartstop state - when song is terminated, mpd stops playing and smartstop is set to 0
2009-03-26queue/playlist/command: move rangeJeffrey Middleton1-3/+5
The move command now accepts a range for the first argument, in the same form as other range commands, e.g. move 15:17 3. The first song in the range is placed at the destination position. Note that as with other range commands, the range is inclusive on the left only; this example would move only songs 15 and 16, not 17. [mk: fixed signed/unsigned warnings; use G_MAXUINT instead of UINT_MAX]
2009-03-15log: removed DEBUG() and FATAL()Max Kellermann1-4/+3
Use GLib the logging functions g_debug(), g_error() instead.
2009-03-14command: return COMMAND_RETURN_OK in handle_addid()Max Kellermann1-1/+1
At the last line of handle_addid(), the playlist_result value has already been evaluated. Don't return this variable, it's the wrong type.