diff options
author | Max Kellermann <max@duempel.org> | 2014-12-12 13:47:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-12 22:10:24 +0100 |
commit | fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55 (patch) | |
tree | a5c6ba9076df11690dfc45c311bb57ef2fdaf7fd /src/sticker/StickerDatabase.hxx | |
parent | 71ece564702a5d91d72f5d35fe34fe5cf9f18556 (diff) | |
download | mpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.tar.gz mpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.tar.xz mpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.zip |
sticker/Song: add enum StickerOperator to sticker_song_find()
Diffstat (limited to '')
-rw-r--r-- | src/sticker/StickerDatabase.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sticker/StickerDatabase.hxx b/src/sticker/StickerDatabase.hxx index 38c7d6f95..d3cfe885e 100644 --- a/src/sticker/StickerDatabase.hxx +++ b/src/sticker/StickerDatabase.hxx @@ -42,6 +42,7 @@ #ifndef MPD_STICKER_DATABASE_HXX #define MPD_STICKER_DATABASE_HXX +#include "Match.hxx" #include "Compiler.h" #include <string> @@ -154,11 +155,14 @@ sticker_load(const char *type, const char *uri, * @param base_uri the URI prefix of the resources, or nullptr if all * resources should be searched * @param name the name of the sticker + * @param op the comparison operator + * @param value the operand * @return true on success (even if no sticker was found), false on * failure */ bool sticker_find(const char *type, const char *base_uri, const char *name, + StickerOperator op, const char *value, void (*func)(const char *uri, const char *value, void *user_data), void *user_data, |