db/proxy: fall back to recursive walk on old libmpdclient/MPD

Error message was 'too few arguments for "find"' because the "base"
constraint was not supported, and no other constraints remained.
This commit is contained in:
Max Kellermann
2014-06-23 09:12:51 +02:00
parent 4c8a5dfb05
commit 848ed14788
6 changed files with 64 additions and 1 deletions

View File

@@ -44,6 +44,15 @@ struct DatabaseSelection {
DatabaseSelection(const char *_uri, bool _recursive,
const SongFilter *_filter=nullptr);
gcc_pure
bool IsEmpty() const;
/**
* Does this selection contain constraints other than "base"?
*/
gcc_pure
bool HasOtherThanBase() const;
gcc_pure
bool Match(const Song &song) const;
};