From 2aee1b86f364dfc9d897939081eb4f0403f9a729 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Oct 2013 18:54:34 +0100 Subject: SongFilter: add special keyword "base" Restores the features from the previous draft commands "findin" / "searchin". --- src/SongFilter.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/SongFilter.hxx') 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 +/** + * 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 &GetItems() const { return items; } + + /** + * Returns the "base" specification (if there is one) or an + * empty string. + */ + gcc_pure + std::string GetBase() const; }; /** -- cgit v1.2.3