aboutsummaryrefslogtreecommitdiffstats
path: root/src/db (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2014-02-09db/update/Walk: rename find_inode_ancestor() to FindAncestorLoop()Max Kellermann1-4/+4
2014-02-08ArchivePlugin: pass Path to open()Max Kellermann1-1/+1
2014-02-08ArchivePlugin: rename struct archive_plugin to ArchivePluginMax Kellermann2-5/+4
2014-02-07InotifyUpdate: use class Storage instead of Mapper.cxxMax Kellermann2-4/+7
2014-02-07InotifyUpdate: use the root name instead of mapper_get_music_directory_fs()Max Kellermann1-1/+1
The root WatchDirectory instance already contains the music directory, and we don't need to fetch it again.
2014-02-07InotifyUpdate: move functions into the WatchDirectory classMax Kellermann1-13/+18
2014-02-07InotifyUpdate: remove unnecessary #ifdefsMax Kellermann1-18/+0
2014-02-07StoragePlugin: add method MapToRelativeUTF8()Max Kellermann1-3/+8
Replaces map_to_relative_path() from Mapper.cxx.
2014-02-07DecoderPlugin: pass Path instance to file_decode() and scan_file()Max Kellermann1-2/+2
2014-02-07SongUpdate: pass Storage to UpdateFileInArchive()Max Kellermann1-1/+1
2014-02-07Mapper: move map_song_detach() to db/DatabaseSong.cxxMax Kellermann5-14/+47
Use Storage::MapUTF8() internally, don't use global variables.
2014-02-06fixed leaked LocalDirectoryReader *const reader in UpdateWalk::UpdateDirectorygeneticdrift1-3/+3