aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* volume: moved range check to handle_setvol()Max Kellermann2009-07-061-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).
* volume, mixer: removed the "relative" parameterMax Kellermann2009-07-061-1/+1
| | | | | Since the "volume" command has been removed, nobody uses relative volumes anymore.
* command: removed the "volume" commandMax Kellermann2009-07-061-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.
* command: added new "status" line with more precise "elapsed time"Max Kellermann2009-06-251-0/+2
|
* command: added "sticker delete" commandMax Kellermann2009-04-281-0/+22
|
* command: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann2009-04-281-1/+1
| | | | | strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
* command: added command "sticker find"Max Kellermann2009-04-011-0/+41
| | | | | This command allows clients to search for stickers with a specified name.
* Move db_get_song into sub-handlers. (FReq 2112)Eric Wollesen2009-04-011-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]
* sticker_print: new library for sending stickers to a clientMax Kellermann2009-04-011-10/+3
|
* do not consider single mode with "next" commandRomain Bignon2009-03-311-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
* command: command_error() is not necessary for export.Avuton Olrich2009-03-301-1/+1
|
* implemented the 'consume' modeRomain Bignon2009-03-301-1/+23
| | | | Consume mode removes each song played
* renamed smartstop to single and changed behaviorRomain Bignon2009-03-271-6/+6
| | | | | When single mode is enabled, after current song it stops playback, or it replay same song if repeat mode is activated.
* implements the smartstop featureRomain Bignon2009-03-271-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
* queue/playlist/command: move rangeJeffrey Middleton2009-03-261-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]
* log: removed DEBUG() and FATAL()Max Kellermann2009-03-151-4/+3
| | | | Use GLib the logging functions g_debug(), g_error() instead.
* command: return COMMAND_RETURN_OK in handle_addid()Max Kellermann2009-03-141-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.
* command: handle the addToPlaylist() result properlyMax Kellermann2009-03-141-1/+2
| | | | | addToPlaylist() has a "enum playlist_result" return value. Convert that to "enum command_return" properly.
* command: use sticker_song_get() instead of sticker_song_list_values()Max Kellermann2009-03-141-11/+10
|
* volume: use bool instead of intMax Kellermann2009-03-141-8/+14
| | | | | Return true/false on success/failure, instead of 0/-1. Pass true/false instead of 1/0 for the "rel" boolean parameter.
* all: Update copyright header.Avuton Olrich2009-03-131-6/+7
| | | | | | | | 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.
* Move from the opaque GPtrArray to GHashTable for sticker lists.Eric Wollesen2009-03-111-20/+13
|
* Add sticker list command.Eric Wollesen2009-03-031-1/+29
| | | | | [mk: merged memory leak patch; fixed indentation (tabs); fixed documentation typo]
* tag: no CamelCaseMax Kellermann2009-02-271-1/+1
| | | | Renamed numOfItems to num_items.
* ls: moved generic URI utilities to uri.cMax Kellermann2009-02-251-0/+1
| | | | | "ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
* added the shufflerange commandRomain Bignon2009-02-131-2/+7
| | | | This command shuffles a range of songs.
* audio: moved code to output_command.cMax Kellermann2009-02-111-9/+13
| | | | | | The output_command library provides a command interface to the audio outputs. It assumes the input comes from an untrusted source (i.e. the client) and verifies all parameters.
* audio: moved protocol code to output_print.cMax Kellermann2009-02-101-0/+1
|
* playlist: provide information about "next song"Vladimir S Eremin2009-02-091-0/+10
| | | | | In random mode, this patch allows clients to see the "next song" in the queue.
* playlist_save: added spl_save_playlist()Max Kellermann2009-02-041-1/+1
| | | | spl_save_playlist() is a wrapper for spl_save_queue().
* playlist_print: added wrappers for printing the queueMax Kellermann2009-02-041-31/+13
| | | | Hide the details of the playlist behind wrapper functions.
* playlist_print: use bool instead of intMax Kellermann2009-02-041-8/+12
| | | | | Return true on success, instead of 0. Converted the "detail" parameter to bool.
* playlist_print: no CamelCaseMax Kellermann2009-02-041-2/+2
| | | | Renamed one function.
* playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann2009-02-041-40/+41
| | | | | | | Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
* playlist: moved savePlaylist() and loadPlaylsit() to playlist_save.cMax Kellermann2009-01-251-2/+3
|
* queue_print, dbUtils: use struct locate_item_listMax Kellermann2009-01-241-7/+6
| | | | | Changed the function prototypes to get locate_item_list objects instead of num_items/items.
* locate: added struct locate_item_listMax Kellermann2009-01-241-48/+53
| | | | | Instead of passing two parameters around (number of items, array of items), combine both in a variable size struct.
* locate: no CamelCaseMax Kellermann2009-01-241-14/+14
| | | | Renamed functions and variables.
* playlist: removed locate functions to queue_print.cMax Kellermann2009-01-241-2/+2
| | | | Now playlist.c does not contain any protocol specific code anymore.