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 46673e737..951b28871 100644
--- a/src/song_sticker.c
+++ b/src/song_sticker.c
@@ -88,3 +88,19 @@ sticker_song_delete(const struct song *song)
return ret;
}
+
+struct sticker *
+sticker_song_get(const struct song *song)
+{
+ char *uri;
+ struct sticker *sticker;
+
+ assert(song != NULL);
+ assert(song_in_database(song));
+
+ uri = song_get_uri(song);
+ sticker = sticker_load("song", uri);
+ g_free(uri);
+
+ return sticker;
+}