SongFilter: add special keyword "base"

Restores the features from the previous draft commands "findin" /
"searchin".
This commit is contained in:
Max Kellermann
2013-10-29 18:54:34 +01:00
parent b5fc21b9f4
commit 2aee1b86f3
6 changed files with 57 additions and 5 deletions

View File

@@ -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;
};
/**