aboutsummaryrefslogtreecommitdiffstats
path: root/src/command (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-08-14client, command: use StringIsEqual()Max Kellermann4-25/+27
2015-08-14command/CommandListBuilder: postpone "size" initializationMax Kellermann2-2/+2
2015-08-14protocol/Result: move current_command to class ResponseMax Kellermann1-14/+2
2015-08-14protocol/Result: move command_list_num to class ResponseMax Kellermann1-4/+1
2015-08-13command: pass Response object to command callbacksMax Kellermann25-395/+246
2015-08-12client/Response: new Client wrapper class for writing responsesMax Kellermann17-465/+588
2015-08-11command/Request: add parser methodsMax Kellermann8-67/+92
Wrapper for protocol/ArgParser.cxx.
2015-08-11protocol/ArgParser: add overload with max_value parameterMax Kellermann2-26/+4
2015-08-11protocol/ArgParser: overload as ParseCommandArg(), pass referencesMax Kellermann6-57/+42
2015-08-11command/Request: new struct wrapping ConstBuffer<const char *>Max Kellermann26-215/+262
2015-08-11protocol/ArgParser: add struct RangeArgMax Kellermann3-31/+32
2015-08-11command/{Queue,Other}: eliminate local "bool" variableMax Kellermann3-13/+6
2015-03-24PlaylistSave: return bool/Error instead of PlaylistResultMax Kellermann1-2/+4
2015-03-03*: change C-style prototypes, drop "(void)"Max Kellermann2-4/+8
2015-03-03FileCommands: use Path::HasNewline()Max Kellermann1-3/+3
2015-03-02StorageCommands: use PathTraitsUTF8 for protocol argumentMax Kellermann1-1/+1
2015-02-28FileCommands: use PathTraitsFS typedefsMax Kellermann1-2/+2
2015-02-28fs/FileInfo: new library providing GetFileInfo()Max Kellermann1-7/+7
Replaces StatFile(), with a portable data object.
2015-02-28FileCommands: skip special files completelyMax Kellermann1-0/+2
Previously, MPD printed the time stamp without printing the file name. That made no sense.
2015-02-28storage/FileInfo: rename to StorageFileInfoMax Kellermann1-4/+4
2015-02-09command/{Queue,File}Commands: drop "file:///" prefix for absolute pathsMax Kellermann2-13/+15
Requiring this prefix makes the client's intention very clear, but it was too hard to understand why this prefix was needed. Initially, my intention was to differentiate from broken clients which prefix relate URIs with a slash; once MPD allowed that. In the past few years however, MPD has disallowed that, and there was no significant breakage (except for the "add /" special case which some clients apparently still do). So I figure it's about time to define that an URI that begins with a slash points to an arbitrary file on the file system.
2015-01-28StickerDatabase: convert the struct name to upper caseMax Kellermann1-1/+1
2015-01-01Copyright year 2015Max Kellermann31-31/+31
2014-12-12sticker/Match: add inequality operatorsMax Kellermann1-0/+4
2014-12-12sticker/Match: add operator "EQUALS"Max Kellermann1-1/+17
Mapped to "=" in the MPD protocol. This is the first operator, initially supporting value matches in the MPD protocol.
2014-12-12sticker/Song: add enum StickerOperator to sticker_song_find()Max Kellermann1-0/+4
2014-12-12sticker/Database: use the Error libraryMax Kellermann1-7/+23
2014-12-09AllCommands: use ARRAY_SIZE()Max Kellermann1-1/+2
2014-12-08command: use ConstBuffer<const char *> for argument listMax Kellermann25-420/+417
2014-12-08AllCommands: simplify the tokenizer loopMax Kellermann1-17/+19
2014-12-08AllCommands: assign current_command earlyMax Kellermann1-5/+4
2014-12-08AllCommands: remove redundant initializerMax Kellermann1-1/+1
2014-12-06AllCommands: make variables more localMax Kellermann1-16/+13
2014-12-06AllCommands: make the commands array "constexpr"Max Kellermann1-1/+1
2014-11-25{Tag,Song}Print, PlayerCommands: report song duration with milliseconds ↵Max Kellermann1-0/+4
precision
2014-11-18QueueCommands: workaround for buggy clients that send "add /"Max Kellermann1-1/+10
2014-11-18DatabaseCommands: add "window" parameter to "search"/"find"Max Kellermann1-1/+13
2014-10-25AllCommands: "commands" returns playlist commands only if playlist_directory ↵Max Kellermann3-0/+23
configured
2014-10-09StoragePlugin: pass EventLoop to constructorMax Kellermann1-2/+4
2014-10-01storage/Interface: include cleanupMax Kellermann1-0/+1
2014-09-18command/list: reset used size after the list has been processedAndrzej Rybczak1-0/+1
2014-08-29PlayerThread: use SongTime for elapsed_timeMax Kellermann1-2/+2
2014-08-29PlayerControl: use SignedSongTime for the song durationMax Kellermann1-1/+3
2014-08-28PlaylistEdit: pass std::chrono::duration to SetSongIdRange()Max Kellermann1-11/+11
2014-08-28Playlist: use std::chrono::duration for Seek*()Max Kellermann1-6/+8
2014-08-12AllCommands: close connection after syntax errorMax Kellermann1-1/+3
Stop HTTP clients from exploiting MPD via forged POST requests.
2014-07-29db/Interface: add virtual method Update()Max Kellermann1-0/+24
For database plugins that don't use the UpdateService.
2014-07-29OtherCommands: split handle_update()Max Kellermann1-16/+22
2014-07-12QueueCommands: new command "rangeid"Max Kellermann3-0/+58
Manipulates the playback range of a queued song.
2014-07-11PlaylistEdit: postpone UpdateQueuedSong() when adding multiple songsMax Kellermann3-0/+9
Implement a "bulk" edit mode that postpones both UpdateQueuedSong() and OnModified(). This way, the playlist version gets incremented only once. More importantly: when adding multiple songs to a queue that consists of only one song, the first song that got added will always be played next. By postponing this choice, all newly added songs get a chance to become the next song. Fixes the second (and last) part of Mantis ticket 0004005.