From 1726278ccc8e33f59e1536389df5b23abb2f955f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Jul 2018 11:32:41 +0200 Subject: [PATCH] SongFilter: make several macros internal --- src/SongFilter.cxx | 8 ++++++++ src/SongFilter.hxx | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index c660870b2..7adabade1 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -44,6 +44,14 @@ #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 + /** * @return #TAG_NUM_OF_ITEM_TYPES on error */ diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index 3d6963ed8..eaea2e2f4 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -30,20 +30,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_MODIFIED_SINCE (TAG_NUM_OF_ITEM_TYPES + 2) - /** * Special value for the db_selection_print() sort parameter. */ #define SORT_TAG_LAST_MODIFIED (TAG_NUM_OF_ITEM_TYPES + 3) -#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10 -#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20 - template struct ConstBuffer; enum TagType : uint8_t; struct Tag;