Commit Graph

48 Commits

Author SHA1 Message Date
83a988e2e4 db/proxy: allocate Directory instance on the stack 2014-01-09 13:21:09 +01:00
322b061632 DetachedSong: fork of struct Song
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-09 09:05:58 +01:00
ac1983eae3 tag/TagBuilder: rename Commit() to CommitNew() 2014-01-08 19:48:55 +01:00
f90abe9530 include cleanup using iwyu 2013-11-28 11:50:54 +01:00
d22acc59c9 db/proxy: implement method GetUpdateStamp() 2013-11-22 00:45:27 +01:00
c064e8d62f DatabasePlugin: add method GetUpdateStamp()
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-11-22 00:35:29 +01:00
8555b65c50 *: update copyright year to 2013 2013-10-30 23:37:06 +01:00
1dc8a9f0e7 db/proxy: remove obsolete #undefs 2013-10-30 20:51:41 +01:00
a62d54425c db/proxy: auto-reconnect 2013-10-30 19:50:22 +01:00
7bb3987acc db/proxy: return server errors using "enum ack" 2013-10-30 16:04:21 +01:00
6a147a17af db/proxy: pass search/find to remote MPD 2013-10-30 10:00:57 +01:00
2b7529e905 db/proxy: pass SongFilter to the remote MPD in VisitUniqueTags() 2013-10-30 09:40:23 +01:00
1ed321f964 db/proxy: add missing nullptr check 2013-10-30 09:37:20 +01:00
205448c1e8 db/proxy: enable song matching 2013-10-29 20:58:35 +01:00
2d5413fc3b DatabaseSelection: use std::string 2013-10-29 20:36:52 +01:00
20597b3632 *: use nullptr instead of NULL 2013-10-28 23:58:17 +01:00
a78b2d84ed TagType: rename enum tag_type to TagType 2013-10-20 13:32:59 +02:00
be2951b45f gcc.h: rename to Compiler.h 2013-10-15 09:21:59 +02:00
662bed6a00 db/proxy: use class TagBuilder 2013-09-05 19:07:27 +02:00
3f267b1795 Tag, ...: move to libtag.a 2013-09-05 18:26:56 +02:00
26d92c80ed conf.h: remove obsolete header
Use only ConfigData.hxx in plugin sources to reduce header
dependencies.
2013-09-05 08:47:10 +02:00
29030b54c9 util/Error: new error passing library
Replaces GLib's GError.
2013-09-04 18:14:22 +02:00
3deca8fccd db_error: convert to C++ 2013-08-10 19:43:27 +02:00
85b77b81ca *: use gcc.h macros instead of GLib 2013-08-04 23:48:01 +02:00
65842cd99e DatabasePlugin: pass config_param reference 2013-08-04 14:07:50 +02:00
06f898cc12 tag: convert to C++ 2013-07-30 20:19:53 +02:00
6a9ab8bc0e tag: move enum tag_type to TagType.h 2013-07-30 20:10:24 +02:00
ba161ec572 song: convert header to C++ 2013-07-28 13:25:12 +02:00
541192c941 db/Proxy: explicitly request first element of array
Works around gcc 4.6 bug.
2013-01-28 21:32:14 +01:00
975370c084 decoder_api.h, ...: add "extern C" 2013-01-07 10:07:40 +01:00
3e8047e583 Directory: rename struct directory to Directory 2013-01-03 01:10:47 +01:00
0eb05b827f Directory: turn functions to methods 2013-01-02 23:06:10 +01:00
0c245bc271 Directory: make the header C++ only 2013-01-02 22:52:08 +01:00
8331de424a PlaylistInfo: rename class, use std::string 2013-01-02 22:16:05 +01:00
0023dffd0b playlist_vector: convert to C++ 2013-01-02 20:25:20 +01:00
7968fa3779 ProxyDatabase: implement GetSong() 2012-08-16 00:29:25 +02:00
31009bb1f6 ProxyDatabase: clear libmpdclient errors in CheckError()
Auto-recover from soft errors.
2012-08-16 00:29:25 +02:00
3b8532f3fb DatabasePlugin: add method ReturnSong()
Allow the plugin to allocate the GetSong() return value.
2012-08-16 00:04:14 +02:00
e391f4b17b ProxyDatabase: pass "detached" objects to visitors
Fixes wrong object URIs with duplicate base names.
2012-08-15 23:10:59 +02:00
3c0dea811d DatabasePlugin: add method GetStats()
Optimize the ProxyDatabase by invoking "stats" on the peer, instead of
visiting all songs.
2012-08-15 23:05:08 +02:00
a6ac0f8965 DatabasePlugin: add method VisitUniqueTags()
Optimize the ProxyDatabase by invoking "list" on the peer, instead of
visiting all songs.
2012-08-15 23:02:27 +02:00
4e1eb03287 ProxyDatabase: obey visitor return values 2012-08-15 23:02:00 +02:00
fcf0f8291d ProxyDatabasePlugin: add OO wrapper for mpd_entity
Let the C++ compiler take care for freeing the objects safely.
2012-08-15 23:01:08 +02:00
0ed71fa027 ProxyDatabasePlugin: move tag table to the global name space 2012-08-15 23:00:44 +02:00
affe21f7c1 db_visitor: delete obsolete header 2012-08-15 22:57:20 +02:00
346e31efa0 ProxyDatabasePlugin: obey the "recursive" flag 2012-08-08 09:28:13 +02:00
b504d63117 ProxyDatabasePlugin: use an artificial "root" directory
Fixes assertion failures in the Directory library.
2012-08-08 09:27:42 +02:00
63a2ac21e1 ProxyDatabasePlugin: new database plugin using libmpdclient
Implementation incomplete, but sort-of-works.  DumpDatabase works, but
MPD is still hard-coded on the "simple" plugin.
2012-08-08 01:20:45 +02:00