From b8ebb748c9e4da74c361c3b4e5840891eaf22864 Mon Sep 17 00:00:00 2001 From: Eric Wollesen Date: Tue, 3 Mar 2009 07:49:23 +0100 Subject: Add sticker list command. [mk: merged memory leak patch; fixed indentation (tabs); fixed documentation typo] --- src/song_sticker.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/song_sticker.h') diff --git a/src/song_sticker.h b/src/song_sticker.h index a09279c52..68124580f 100644 --- a/src/song_sticker.h +++ b/src/song_sticker.h @@ -20,6 +20,7 @@ #define SONG_STICKER_H #include +#include struct song; @@ -38,6 +39,15 @@ bool sticker_song_set_value(const struct song *song, const char *name, const char *value); +/** + * Returns a list of key value pairs from a song's sticker record. + * The caller must free each GPtrArray element of the returned list + * with g_ptr_array_free(), as well as the returned GList with + * g_list_free(). + */ +GList * +sticker_song_list_values(const struct song *song); + /** * Deletes a sticker from the database. All values are deleted. */ -- cgit v1.2.3