aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_sticker.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song_sticker.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/song_sticker.c b/src/song_sticker.c
index 131519bcd..2758ff534 100644
--- a/src/song_sticker.c
+++ b/src/song_sticker.c
@@ -75,6 +75,22 @@ sticker_song_delete(const struct song *song)
return ret;
}
+bool
+sticker_song_delete_value(const struct song *song, const char *name)
+{
+ char *uri;
+ bool success;
+
+ assert(song != NULL);
+ assert(song_in_database(song));
+
+ uri = song_get_uri(song);
+ success = sticker_delete_value("song", uri, name);
+ g_free(uri);
+
+ return success;
+}
+
struct sticker *
sticker_song_get(const struct song *song)
{