aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/StickerCommands.cxx
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/command/StickerCommands.cxx
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/command/StickerCommands.cxx')
-rw-r--r--src/command/StickerCommands.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx
index f2fad86cc..b8eee55c5 100644
--- a/src/command/StickerCommands.cxx
+++ b/src/command/StickerCommands.cxx
@@ -143,6 +143,9 @@ handle_sticker_song(Client &client, ConstBuffer<const char *> args)
const char *const base_uri = args[2];
+ StickerOperator op = StickerOperator::EXISTS;
+ const char *value = nullptr;
+
bool success;
struct sticker_song_find_data data = {
client,
@@ -150,6 +153,7 @@ handle_sticker_song(Client &client, ConstBuffer<const char *> args)
};
success = sticker_song_find(*db, base_uri, data.name,
+ op, value,
sticker_song_find_print_cb, &data,
error);
if (!success) {