diff options
author | Max Kellermann <max@duempel.org> | 2014-06-23 09:12:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-06-23 09:18:11 +0200 |
commit | 848ed1478866e4d99c10aa962a6d976a6b989536 (patch) | |
tree | 5da39e4368027e24d690bc5d004b9cf6d30bc396 /src/SongFilter.hxx | |
parent | 4c8a5dfb0522b0ff7d6acb96fd2fbc33c22c14e6 (diff) |
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.
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r-- | src/SongFilter.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index b15127c07..8c46ed5f3 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -109,6 +109,11 @@ public: return items; } + gcc_pure + bool IsEmpty() const { + return items.empty(); + } + /** * Is there at least one item with "fold case" enabled? */ @@ -122,6 +127,12 @@ public: } /** + * Does this filter contain constraints other than "base"? + */ + gcc_pure + bool HasOtherThanBase() const; + + /** * Returns the "base" specification (if there is one) or an * empty string. */ |