SongFilter: convert argv to ConstBuffer

This commit is contained in:
Max Kellermann
2014-04-24 09:43:08 +02:00
parent 7fb9bebd46
commit b999e16406
4 changed files with 27 additions and 13 deletions

View File

@@ -35,6 +35,7 @@
#define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10
#define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20
template<typename T> struct ConstBuffer;
struct Tag;
struct TagItem;
struct Song;
@@ -101,8 +102,7 @@ public:
gcc_nonnull(2,3)
bool Parse(const char *tag, const char *value, bool fold_case=false);
gcc_nonnull(3)
bool Parse(unsigned argc, char *argv[], bool fold_case=false);
bool Parse(ConstBuffer<const char *> args, bool fold_case=false);
gcc_pure
bool Match(const Tag &tag) const;