aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-29 18:54:34 +0100
committerMax Kellermann <max@duempel.org>2013-10-29 21:13:40 +0100
commit2aee1b86f364dfc9d897939081eb4f0403f9a729 (patch)
tree1ba3e441ad69018153e266900777b2eb85b47b40 /src/SongFilter.hxx
parentb5fc21b9f442904608a73e3c705e498c55769843 (diff)
downloadmpd-2aee1b86f364dfc9d897939081eb4f0403f9a729.tar.gz
mpd-2aee1b86f364dfc9d897939081eb4f0403f9a729.tar.xz
mpd-2aee1b86f364dfc9d897939081eb4f0403f9a729.zip
SongFilter: add special keyword "base"
Restores the features from the previous draft commands "findin" / "searchin".
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r--src/SongFilter.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx
index 6f77ecc7e..a71fe2cb1 100644
--- a/src/SongFilter.hxx
+++ b/src/SongFilter.hxx
@@ -27,6 +27,11 @@
#include <stdint.h>
+/**
+ * Limit the search to files within the given directory.
+ */
+#define LOCATE_TAG_BASE_TYPE (TAG_NUM_OF_ITEM_TYPES + 1)
+
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20
@@ -99,6 +104,13 @@ public:
const std::list<Item> &GetItems() const {
return items;
}
+
+ /**
+ * Returns the "base" specification (if there is one) or an
+ * empty string.
+ */
+ gcc_pure
+ std::string GetBase() const;
};
/**