aboutsummaryrefslogtreecommitdiffstats
path: root/src/command (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-06-16command: make argc unsignedMax Kellermann25-206/+205
2014-06-11ClientList: use class boost::intrusive::listMax Kellermann1-4/+4
Eliminate extra allocations for the std::list node instances.
2014-05-10PlaylistCommands: remove redundant playlist_load_spl() callMax Kellermann1-17/+1
This case is handled already by playlist_open_in_playlist_dir() (via playlist_mapper_open()). And the call didn't work anyway.
2014-04-27db/Count: implement groupingMax Kellermann1-2/+16
2014-04-26DatabasePrint: move PrintSongCount() to Count.cxxMax Kellermann1-0/+1
2014-04-25DatabasePrint: refactor variable/function namesMax Kellermann1-2/+2
2014-04-25DatabaseCommands: disallow "grouping" by the selected tagMax Kellermann1-0/+7
Fixes assertion failure.
2014-04-24DatabasePrint: eliminate printAllIn(), printInfoForAllIn()Max Kellermann1-2/+4
2014-04-24DatabaseCommands: "list" allows groupingMax Kellermann1-1/+20
2014-04-24DatabaseCommands: simplify the handle_list() argument parserMax Kellermann1-9/+12
2014-04-24SongFilter: convert argv to ConstBufferMax Kellermann2-7/+20
2014-04-24DatabaseCommands: fix crash on "list base"Max Kellermann1-7/+2
The string "base" is understood by locate_parse_type(), but not by listAllUniqueTags(). The special tag type LOCATE_TAG_BASE_TYPE causes a crash in PrintUniqueTag().
2014-04-24DatabaseCommands: clarify compatibility commentMax Kellermann1-1/+1
2014-03-14command/{storage,file}: suppress bogus format warnings on WIN32Max Kellermann2-0/+22
2014-03-01command: add command "listfiles"Max Kellermann9-2/+237
Lists files and directories. Supports storage plugins.
2014-02-28{Other,Database}Commands: contract declaration and assignmentMax Kellermann2-12/+6
2014-02-27AllCommands: "findadd" requires the "add" permissionMax Kellermann1-1/+1
2014-02-27db/simple: mount pointsMax Kellermann2-0/+51
A SimpleDatabase instance can now "mount" other Database instances at certain locations. This is used to use a new SimpleDatabase instance for each storage mount (issued with the "mount" protocol command). Each such instance has its own database file, stored in the directory that is specified with the "cache_directory" option.
2014-02-27Playlist: use the Error library to return errorsMax Kellermann2-17/+17
2014-02-27Playlist*: move to queue/Max Kellermann3-3/+3
2014-02-19DatabasePlugin: split headerMax Kellermann1-1/+1
2014-02-19StickerCommands: include cleanupMax Kellermann1-1/+0
2014-02-12StorageCommands: add command "unmount"Max Kellermann3-0/+33
2014-02-12StorageCommands: emit IDLE_MOUNT on successful "mount"Max Kellermann1-0/+2
Add the new idle event to Idle.hxx/Idle.cxx.
2014-02-12StorageCommands: add command "listmounts"Max Kellermann3-0/+54
2014-02-09StorageCommands: expose the "mount" commandMax Kellermann3-0/+97
2014-02-09Idle: error out when unrecognized idle event was specifiedMax Kellermann1-8/+9
Implements the error checks missing in commit 0bad8406
2014-02-09OtherCommands: remove unnecessary nullptr checkMax Kellermann1-3/+0
2014-02-07OtherCommands: use Storage::MapUTF8() instead of Mapper.cxxMax Kellermann1-4/+6
2014-02-07FileCommands: support remove database filesMax Kellermann1-6/+13
2014-02-07FileCommands: use Storage::MapFS() instead of map_uri_fs()Max Kellermann1-5/+11
2014-02-07FileCommands: move code to read_file_comments()Max Kellermann1-15/+22
2014-02-07Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann2-2/+4
Use Storage::MapUTF8() internally, don't use global variables.
2014-02-04{Message,Neighbor}Commands: use Client::partition instead of Main.hxxMax Kellermann4-13/+17
2014-02-04Instance: add Database attributeMax Kellermann3-4/+6
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-04db/Simple: remove unused function db_get_directory()Max Kellermann1-1/+0
2014-02-04SongSticker: add Database reference parameterMax Kellermann1-1/+1
2014-02-04db/DatabasePlaylist: pass Database reference aroundMax Kellermann2-2/+12
Reduce global variable usage, move to frontend code.
2014-02-03PlaylistFile: use class SongLoaderMax Kellermann1-7/+2
2014-02-03PlaylistFile: switch spl_append_uri() argumentsMax Kellermann1-1/+1
Playlist file name first, to be consistent with the other functions in this library.
2014-02-03SongLoader: new class that merges duplicate codeMax Kellermann2-56/+33
There was quite a lot of duplicate code for loading DetachedSong objects, with different semantics for "securely" loading local files.
2014-02-03FileCommands: use PathTraitsUTF8::IsAbsolute()Max Kellermann1-1/+1
2014-02-02ClientFile: move client_allow_file() into the Client classMax Kellermann3-7/+4
2014-01-30db: add compile-time option to disable databaseMax Kellermann7-4/+56
2014-01-30OtherCommands: merge duplicate code from handle_update(), handle_rescan()Max Kellermann1-31/+10
2014-01-30db/update: convert to OO APIMax Kellermann2-8/+23
Move global variables into the new classes. That may allow multiple update threads for multiple databases one day.
2014-01-29db/Directory: move isRootDirectory() to Uri.hxxMax Kellermann1-1/+1
Decouple command/OtherCommands.cxx from the "simple" database plugin.
2014-01-29sticker: don't use classes Directory and SongMax Kellermann1-11/+4
Don't depend on the "simple" database plugin. This fixes an assertion failure / crash and allows using stickers with other plugins.
2014-01-28OutputAll: convert to class, move instance to class PartitionMax Kellermann3-18/+14
Another big chunk of code for multi-player support.
2014-01-27Playlist{Info,Vector}: move to db/Max Kellermann2-2/+2