aboutsummaryrefslogtreecommitdiffstats
path: root/src/db (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2014-02-25DatabaseSave: increase DB_FORMAT versionMax Kellermann1-1/+1
2014-02-25DatabaseSave: add constant OLDEST_DB_FORMATMax Kellermann1-1/+6
2014-02-25DirectorySave: move code to ParseLine()Max Kellermann1-17/+23
2014-02-24DirectorySave: save the mtime only if it is knownMax Kellermann1-2/+3
2014-02-24SongSort, ...: use libicu instead of GLib's g_utf8_*()Max Kellermann2-7/+6
2014-02-24DecoderPlugin: free the container_scan() return value with delete[]Max Kellermann1-3/+1
2014-02-23Directory: use PathTraitsUTF8::Build() instead of g_strconcat()Max Kellermann1-13/+4
2014-02-23Directory: pass std::string&& to constructorMax Kellermann2-4/+4
2014-02-21db/Directory: use "unsigned" for inode and deviceMax Kellermann1-6/+3
This is what we get from the storage plugin via FileInfo. Fixes a compiler warning on Mac OS X where dev_t appears to be signed.
2014-02-19db/upnp: move plugin source to upnp directoryMax Kellermann3-3/+3
2014-02-19DatabasePlugin: add FLAG_REQUIRE_STORAGEMax Kellermann3-2/+12
Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin.
2014-02-19DatabasePlugin: add attribute "flags"Max Kellermann4-0/+5
2014-02-19db/Interface: add attribute "plugin"Max Kellermann11-13/+32
The new method IsPlugin() replaces the "is_simple" flag.
2014-02-19DatabasePlugin: split headerMax Kellermann15-121/+183
2014-02-17util/StringUtil: add function Strip()Max Kellermann1-2/+2
Replaces g_strstrip().
2014-02-17Main: initialize Database before StorageMax Kellermann2-14/+2
2014-02-17db/Configured: disallow both "db_file" and "database"Max Kellermann1-3/+7
This is misconfiguration, and MPD should abort.
2014-02-17Main: move code to db/Configured.cxxMax Kellermann2-0/+106
2014-02-17db/DatabaseSimple: remove obsolete headerMax Kellermann1-47/+0
2014-02-09db/update/Walk: disable FindAncestorLoop() if device/inode==0Max Kellermann1-0/+5
2014-02-09db/update/Walk: document FindAncestorLoop()Max Kellermann1-0/+6