aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 20:23:27 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 20:23:27 +0200
commit610940a06dc09fc14581cffc2829358e926ec9c3 (patch)
treed625b3f12f3cdc7221dd63876a783cbae20ecae2 /src/sticker.h
parent7d9316a52d935ce6c9f4ae3030c975d660a02db6 (diff)
downloadmpd-610940a06dc09fc14581cffc2829358e926ec9c3.tar.gz
mpd-610940a06dc09fc14581cffc2829358e926ec9c3.tar.xz
mpd-610940a06dc09fc14581cffc2829358e926ec9c3.zip
sticker: added sticker_delete_value()
sticker_delete_value() deletes only one value in a sticker, while the old function sticker_delete() deletes all values.
Diffstat (limited to '')
-rw-r--r--src/sticker.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sticker.h b/src/sticker.h
index 5daba3def..8e6410914 100644
--- a/src/sticker.h
+++ b/src/sticker.h
@@ -89,6 +89,13 @@ bool
sticker_delete(const char *type, const char *uri);
/**
+ * Deletes a sticker value. Fails if no sticker with this name
+ * exists.
+ */
+bool
+sticker_delete_value(const char *type, const char *uri, const char *name);
+
+/**
* Frees resources held by the sticker object.
*
* @param sticker the sticker object to be freed