song/Filter: convert LOCATE_TAG_* macros to enum

This commit is contained in:
Max Kellermann 2018-08-02 17:23:25 +02:00
parent d929d0c26f
commit 299c809272

View File

@ -48,13 +48,16 @@
#define LOCATE_TAG_FILE_KEY_OLD "filename"
#define LOCATE_TAG_ANY_KEY "any"
/**
* Limit the search to files within the given directory.
*/
#define LOCATE_TAG_BASE_TYPE (TAG_NUM_OF_ITEM_TYPES + 1)
#define LOCATE_TAG_MODIFIED_SINCE (TAG_NUM_OF_ITEM_TYPES + 2)
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20
enum {
/**
* Limit the search to files within the given directory.
*/
LOCATE_TAG_BASE_TYPE = TAG_NUM_OF_ITEM_TYPES + 1,
LOCATE_TAG_MODIFIED_SINCE,
LOCATE_TAG_FILE_TYPE,
LOCATE_TAG_ANY_TYPE,
};
/**
* @return #TAG_NUM_OF_ITEM_TYPES on error