aboutsummaryrefslogtreecommitdiff
path: root/src/db
Commit message (Collapse)AuthorAge
* SimpleDatabasePlugin: use file system API, log in UTF-8Denis Krjuchkov2013-02-02
|
* db/Proxy: explicitly request first element of arrayMax Kellermann2013-01-28
| | | | Works around gcc 4.6 bug.
* Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov2013-01-28
| | | | required
* Path: move to fs subdirectoryDenis Krjuchkov2013-01-22
|
* Path: new class "Path" wraps filesystem path stringsMax Kellermann2013-01-18
|
* decoder_api.h, ...: add "extern C"Max Kellermann2013-01-07
|
* TextFile: convert to a classMax Kellermann2013-01-03
|
* Directory: rename struct directory to DirectoryMax Kellermann2013-01-03
|
* Directory: turn functions to methodsMax Kellermann2013-01-02
|
* Directory: make the header C++ onlyMax Kellermann2013-01-02
|
* PlaylistInfo: rename class, use std::stringMax Kellermann2013-01-02
|
* db_lock: convert to C++Max Kellermann2013-01-02
|
* don't include stdbool.h in C++ sourcesMax Kellermann2013-01-02
| | | | The "bool" type is built-in.
* playlist_vector: convert to C++Max Kellermann2013-01-02
|
* db_save, state_file: convert to C++Max Kellermann2013-01-02
|
* db/SimpleDatabasePlugin: fix memory leak in Visit()Max Kellermann2012-09-05
| | | | | | | When visiting a song, GetSong() was called, but this object was never returned by calling ReturnSong(). This patch locks the database only once in Visit() and passes the original song object to the visitor, avoiding the copy.
* db_lock: add C++ helper class ScopeDatabaseLockMax Kellermann2012-09-05
|
* SongFilter: convert to a C++ classMax Kellermann2012-08-29
|
* DatabaseSelection: add method Match()Max Kellermann2012-08-29
|
* locate: rename to SongFilter.cxxMax Kellermann2012-08-29
|
* ProxyDatabase: implement GetSong()Max Kellermann2012-08-16
|
* ProxyDatabase: clear libmpdclient errors in CheckError()Max Kellermann2012-08-16
| | | | Auto-recover from soft errors.
* DatabasePlugin: add method ReturnSong()Max Kellermann2012-08-16
| | | | Allow the plugin to allocate the GetSong() return value.
* ProxyDatabase: pass "detached" objects to visitorsMax Kellermann2012-08-15
| | | | Fixes wrong object URIs with duplicate base names.
* DatabasePlugin: add method GetStats()Max Kellermann2012-08-15
| | | | | Optimize the ProxyDatabase by invoking "stats" on the peer, instead of visiting all songs.
* DatabasePlugin: add method VisitUniqueTags()Max Kellermann2012-08-15
| | | | | Optimize the ProxyDatabase by invoking "list" on the peer, instead of visiting all songs.
* ProxyDatabase: obey visitor return valuesMax Kellermann2012-08-15
|
* ProxyDatabasePlugin: add OO wrapper for mpd_entityMax Kellermann2012-08-15
| | | | Let the C++ compiler take care for freeing the objects safely.
* ProxyDatabasePlugin: move tag table to the global name spaceMax Kellermann2012-08-15
|
* db_visitor: delete obsolete headerMax Kellermann2012-08-15
|
* ProxyDatabasePlugin: obey the "recursive" flagMax Kellermann2012-08-08
|
* ProxyDatabasePlugin: use an artificial "root" directoryMax Kellermann2012-08-08
| | | | Fixes assertion failures in the Directory library.
* ProxyDatabasePlugin: new database plugin using libmpdclientMax Kellermann2012-08-08
| | | | | Implementation incomplete, but sort-of-works. DumpDatabase works, but MPD is still hard-coded on the "simple" plugin.
* DatabaseSelection: add "match" attributeMax Kellermann2012-08-08
| | | | Let the database plugin do the match.
* db_selection: rename to DatabaseSelectionMax Kellermann2012-08-07
|
* Database{Plugin,Visitor}: pass referencesMax Kellermann2012-08-07
|
* DatabasePlugin: make Visit() constMax Kellermann2012-08-02
|
* gcc.h: re-add gcc_const and gcc_pureMax Kellermann2012-08-02
| | | | Remove GLib dependency from some headers.
* db_plugin: convert to C++Max Kellermann2012-08-01
|
* require GLib 2.16Max Kellermann2012-07-10
| | | | | GLib 2.16 was released more than 4 years ago. Let's remove some cruft from the glib_compat.h header, and avoid new cruft to it.
* directory: require the caller to lock the db_mutexMax Kellermann2012-02-02
| | | | | Reduce the number of lock/unlock cycles, and make database handling safer.
* directory: replace dirvec with doubly linked listMax Kellermann2012-01-24
| | | | | Random access is not needed, and a linked list is easier to manage: we don't need to (re-)allocate the pointer array.
* directory: simplify constructors and clarify API documentationMax Kellermann2012-01-24
| | | | | Pass only the "name" to a directory, instead of the full (relative) path.
* db/simple: pass the correct GError pointerMax Kellermann2012-01-12
|
* db_plugin: add method visit()Max Kellermann2011-09-13
|
* db_plugin: add method get_song()Max Kellermann2011-09-13
| | | | New db_get_song() implementation.
* db_plugin: introducing a plugin API for the song databaseMax Kellermann2011-09-10
First draft, not really pluggable currently - hard-coded to use the "simple" plugin, and calls several of its internal functions. The API is very simple currently, all searches are still performed over the root "directory" object. Future changes to the API will move those search implementations into the plugin, to allow more efficient implementations, or implementations that don't have the whole tree in memory all the time.