aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/SongSticker.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-12 13:47:57 +0100
committerMax Kellermann <max@duempel.org>2014-12-12 22:10:24 +0100
commitfed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55 (patch)
treea5c6ba9076df11690dfc45c311bb57ef2fdaf7fd /src/sticker/SongSticker.hxx
parent71ece564702a5d91d72f5d35fe34fe5cf9f18556 (diff)
downloadmpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.tar.gz
mpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.tar.xz
mpd-fed44e95b3c4bc74c8bd96eaf6f08bc6ad01ed55.zip
sticker/Song: add enum StickerOperator to sticker_song_find()
Diffstat (limited to 'src/sticker/SongSticker.hxx')
-rw-r--r--src/sticker/SongSticker.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sticker/SongSticker.hxx b/src/sticker/SongSticker.hxx
index 918046d0e..ec4f1b344 100644
--- a/src/sticker/SongSticker.hxx
+++ b/src/sticker/SongSticker.hxx
@@ -20,6 +20,7 @@
#ifndef MPD_SONG_STICKER_HXX
#define MPD_SONG_STICKER_HXX
+#include "Match.hxx"
#include "Compiler.h"
#include <string>
@@ -30,7 +31,8 @@ class Database;
class Error;
/**
- * Returns one value from a song's sticker record.
+ * Returns one value from a song's sticker record. The caller must
+ * free the return value with g_free().
*/
gcc_pure
std::string
@@ -81,6 +83,7 @@ sticker_song_get(const LightSong &song, Error &error);
*/
bool
sticker_song_find(const Database &db, const char *base_uri, const char *name,
+ StickerOperator op, const char *value,
void (*func)(const LightSong &song, const char *value,
void *user_data),
void *user_data,