aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/ProxyDatabasePlugin.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-26db/proxy, output/shout: fix implicit nullptr/bool conversionMax Kellermann1-3/+3
Return false on error, not nullptr.
2014-12-26db/{simple,proxy}, ...: add "override" keywordsMax Kellermann1-1/+1
Fixes -Winconsistent-missing-override (clang 3.6).
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-01-24Database*: move to db/Max Kellermann1-782/+0
2014-01-24Config*: move to config/Max Kellermann1-1/+1
2014-01-22db/proxy: fix for libmpdclient < 2.9Max Kellermann1-0/+4
2014-01-22db/proxy: copy "Last-Modified" from remote directoriesMax Kellermann1-1/+2
2014-01-22LightDirectory: new struct replacing Directory in the DB APIMax Kellermann1-15/+12
2014-01-19LightSong: new class to be used by DatabasePlugin callbacksMax Kellermann1-60/+69
Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread.
2014-01-19db/proxy: simplify error handling in GetSong()Max Kellermann1-11/+9
Check mpd_response_finish() before using mpd_song. Don't skip this check even if the mpd_song is non-nullptr.
2014-01-19Song: embed the Tag object statically into class SongMax Kellermann1-1/+1
Reduces overhead because we need to manage only one memory allocation. According to valgrind/massif, we save 7%.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-11db/proxy: forward "idle" eventsMax Kellermann1-4/+115
Send "idle" to the other MPD whenever there's nothing else to do and forward incoming "idle database" events to all our MPD clients.
2014-01-11DatabasePlugin: add interface DatabaseListenerMax Kellermann1-2/+5
Allow database plugins to announce that they have been modified.
2014-01-11db/proxy: move code to Disconnect()Max Kellermann1-6/+15
2014-01-09Directory: remove method Free()Max Kellermann1-1/+1
2014-01-09db/proxy: allocate Directory instance on the stackMax Kellermann1-7/+3
2014-01-09DetachedSong: fork of struct SongMax Kellermann1-13/+12
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead.
2014-01-08tag/TagBuilder: rename Commit() to CommitNew()Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-1/+0
2013-11-22db/proxy: implement method GetUpdateStamp()Max Kellermann1-2/+7
2013-11-22DatabasePlugin: add method GetUpdateStamp()Max Kellermann1-0/+5
Refactor SimpleDatabase::GetLastModified() to be generic for all plugins. Remove the SimpleDatabase assumption from db_stats_print(), allowing it to be implemented by all database plugins.
2013-10-30*: update copyright year to 2013Max Kellermann1-1/+1
2013-10-30db/proxy: remove obsolete #undefsMax Kellermann1-2/+0
2013-10-30db/proxy: auto-reconnectMax Kellermann1-14/+64
2013-10-30db/proxy: return server errors using "enum ack"Max Kellermann1-2/+13
2013-10-30db/proxy: pass search/find to remote MPDMax Kellermann1-1/+38
2013-10-30db/proxy: pass SongFilter to the remote MPD in VisitUniqueTags()Max Kellermann1-2/+72
2013-10-30db/proxy: add missing nullptr checkMax Kellermann1-1/+2
2013-10-29db/proxy: enable song matchingJean-Francois Dockes1-9/+23
2013-10-29DatabaseSelection: use std::stringMax Kellermann1-1/+1
2013-10-28*: use nullptr instead of NULLMax Kellermann1-5/+5
2013-10-20TagType: rename enum tag_type to TagTypeMax Kellermann1-5/+5
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-09-05db/proxy: use class TagBuilderMax Kellermann1-8/+6
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-1/+1
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-04util/Error: new error passing libraryMax Kellermann1-56/+50
Replaces GLib's GError.
2013-08-10db_error: convert to C++Max Kellermann1-4/+1
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-2/+2
2013-08-04DatabasePlugin: pass config_param referenceMax Kellermann1-6/+6
2013-07-30tag: convert to C++Max Kellermann1-7/+7
2013-07-30tag: move enum tag_type to TagType.hMax Kellermann1-0/+1
2013-07-28song: convert header to C++Max Kellermann1-15/+15
2013-01-28db/Proxy: explicitly request first element of arrayMax Kellermann1-2/+2
Works around gcc 4.6 bug.
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-2/+1
2013-01-03Directory: rename struct directory to DirectoryMax Kellermann1-4/+3
2013-01-02Directory: turn functions to methodsMax Kellermann1-4/+4
2013-01-02Directory: make the header C++ onlyMax Kellermann1-2/+1