aboutsummaryrefslogtreecommitdiffstats
path: root/src/db (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-12Tag: add class const_iterator and methods begin(), end()Max Kellermann3-9/+3
Enables using range-based "for".
2014-06-23db/proxy: fall back to recursive walk on old libmpdclient/MPDMax Kellermann1-1/+21
Error message was 'too few arguments for "find"' because the "base" constraint was not supported, and no other constraints remained.
2014-06-23db/proxy: use mpd_song_get_{start,end}() only with libmpdclient >= 2.3Max Kellermann1-0/+5
2014-06-23db/proxy: use mpd_song_get_{start,end}() only with libmpdclient >= 2.3Max Kellermann1-0/+5
2014-06-21db/proxy: initialize LightSong::real_uriMax Kellermann1-0/+1
Fixes potential crash.
2014-06-16Directory: eliminate attribute "have_stat"Max Kellermann3-4/+3
Check for 0 in "device" and "inode" instead.
2014-06-16db/simple: use class boost::intrusive::listMax Kellermann8-144/+151
Remove the C list_head library and use type-safe C++ instead.
2014-04-27db/Count: implement groupingMax Kellermann2-7/+82
2014-04-27db/Count: add constructorMax Kellermann1-2/+3
2014-04-26DatabasePrint: move PrintSongCount() to Count.cxxMax Kellermann4-54/+110
2014-04-25db/Helpers: split libraryMax Kellermann5-47/+98
2014-04-25DatabasePrint: refactor variable/function namesMax Kellermann2-21/+21
2014-04-24db/Helpers: move code to tag/Set.cxxMax Kellermann1-88/+1
2014-04-24db/Helpers: move TagSet to dedicated headerMax Kellermann1-24/+1
2014-04-24db/Helpers: use set::emplace()Max Kellermann1-0/+8
2014-04-24DatabasePrint: eliminate printAllIn(), printInfoForAllIn()Max Kellermann2-24/+0
2014-04-24DatabasePrint: merge adjacent client_printf() callsMax Kellermann1-2/+4
2014-04-24DatabasePrint: pass const SearchStats referenceMax Kellermann1-4/+5
2014-04-24DatabasePrint: use unsigned countsMax Kellermann1-3/+3
2014-04-24DatabaseCommands: "list" allows groupingMax Kellermann12-42/+166
2014-04-24db/Helpers: "list" on album artist falls back to the artist tagMax Kellermann1-1/+4
2014-04-24db/Helpers: move code to CheckUniqueTag()Max Kellermann1-6/+12
2014-04-24db/Helpers: use reference instead of pointerMax Kellermann1-4/+6
2014-04-24DatabaseCommands: fix crash on "list base"Max Kellermann1-0/+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-24DatabasePrint: convert "type" to unsignedMax Kellermann2-2/+2
2014-03-06db/proxy: check connect error before initializing SocketMonitorMax Kellermann1-7/+7
Fixes crash bug because mpd_connection_get_async() was called without a connection.
2014-03-01fs/StandardDirectory: add GetUserCacheDir()Max Kellermann1-15/+4
Move code from CreateConfiguredDatabase() and add XDG support. This implements an automatic Linux fallback for the setting "db_file" if none was specified.
2014-03-01db/Configured: store database file in cache directoryMax Kellermann1-1/+25
Add class Context which wraps the Android/Java Context class and add a JNI wrapper for method Context.getCacheDir().
2014-03-01db/update/ExcludeList: make no-op if GLib is disabledMax Kellermann2-0/+22
Quick hack to allow using the database without GLib (for Android).
2014-03-01command: add command "listfiles"Max Kellermann2-28/+44
Lists files and directories. Supports storage plugins.
2014-02-28DatabasePrint: move code to PrintDirectoryURI()Max Kellermann1-2/+8
2014-02-28DatabasePrint: add API documentationMax Kellermann1-0/+3
2014-02-27db/simple: mount pointsMax Kellermann15-23/+548
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-27db/update/Queue: use std::list instead of std::queueMax Kellermann2-5/+4
The problem with std::queue is that it doesn't give us enough control. The method Clear() is a kludge already, but soon, we'll need filtering.
2014-02-27db/simple: GetRoot() returns referenceMax Kellermann2-3/+3
2014-02-27db/update/Service: allocate UpdateWalk dynamicallyMax Kellermann5-19/+28
2014-02-27Playlist: use the Error library to return errorsMax Kellermann1-9/+3
2014-02-27db/update: cancel the update on shutdownMax Kellermann5-1/+55
2014-02-27db/UpdateGlue: rename to Service.cxxMax Kellermann2-161/+140
2014-02-26db/simple/Directory: eliminate method LookupSong()Max Kellermann3-30/+19
Move to SimpleDatabase::GetSong() to give that method more control.
2014-02-26db/simple/Directory: LookupDirectory() return remaining URIMax Kellermann3-41/+62
Code can now be reused in LookupSong().
2014-02-26db/simple/Directory: make variables more localMax Kellermann1-4/+2
2014-02-26db/Directory: add DEVICE_* documentationMax Kellermann1-0/+10
2014-02-26db/simple: create dedicated directoryMax Kellermann22-28/+27
2014-02-25db/Song: update API documentation for SimpleDatabasePluginMax Kellermann1-6/+5
2014-02-25db/simple: remove unused method LookupDirectory()Max Kellermann2-14/+0
2014-02-25db/simple: make internal methods "private"Max Kellermann1-1/+1
2014-02-25db/simple: add commentMax Kellermann1-0/+1
2014-02-25db/simple: move Create() upMax Kellermann1-4/+4
2014-02-25DirectorySave: save the flags "DEVICE_INARCHIVE" and "DEVICE_CONTAINER"Max Kellermann1-0/+37
Helps avoid unnecessary archive scans during database update on a fresh MPD process.