aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_sticker.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 14:20:01 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 14:20:01 +0100
commitdd67992a0c403ff23b071fe9b1e312cfaa4bd924 (patch)
tree7f5d03f53e48dc63ff6c0bea369dd249c6b6bcea /src/song_sticker.h
parent5b687795c499e9fef4eeed234552f1171a845a95 (diff)
downloadmpd-dd67992a0c403ff23b071fe9b1e312cfaa4bd924.tar.gz
mpd-dd67992a0c403ff23b071fe9b1e312cfaa4bd924.tar.xz
mpd-dd67992a0c403ff23b071fe9b1e312cfaa4bd924.zip
sticker: added "struct sticker"
The sticker struct can be used for enumerating values. This will replace the sticker_list_values() function.
Diffstat (limited to 'src/song_sticker.h')
-rw-r--r--src/song_sticker.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/song_sticker.h b/src/song_sticker.h
index df5b092db..3b27e91b6 100644
--- a/src/song_sticker.h
+++ b/src/song_sticker.h
@@ -24,6 +24,7 @@
#include <glib.h>
struct song;
+struct sticker;
/**
* Returns one value from a song's sticker record. The caller must
@@ -53,4 +54,13 @@ sticker_song_list_values(const struct song *song);
bool
sticker_song_delete(const struct song *song);
+/**
+ * Loads the sticker for the specified song.
+ *
+ * @param song the song object
+ * @return a sticker object, or NULL on error or if there is no sticker
+ */
+struct sticker *
+sticker_song_get(const struct song *song);
+
#endif