diff options
author | Eric Wollesen <ericw@xmtp.net> | 2009-03-03 07:49:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-03 07:49:23 +0100 |
commit | b8ebb748c9e4da74c361c3b4e5840891eaf22864 (patch) | |
tree | 69368bd8f3e382be05644601f44b117c40ffdd45 /src/song_sticker.c | |
parent | 95b53281a45841bc4d981f131ac452615e923575 (diff) | |
download | mpd-b8ebb748c9e4da74c361c3b4e5840891eaf22864.tar.gz mpd-b8ebb748c9e4da74c361c3b4e5840891eaf22864.tar.xz mpd-b8ebb748c9e4da74c361c3b4e5840891eaf22864.zip |
Add sticker list command.
[mk: merged memory leak patch; fixed indentation (tabs); fixed
documentation typo]
Diffstat (limited to 'src/song_sticker.c')
-rw-r--r-- | src/song_sticker.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/song_sticker.c b/src/song_sticker.c index cdd3f84c3..bf400c15b 100644 --- a/src/song_sticker.c +++ b/src/song_sticker.c @@ -39,6 +39,22 @@ sticker_song_get_value(const struct song *song, const char *name) return value; } +GList * +sticker_song_list_values(const struct song *song) +{ + char *uri; + GList *list; + + assert(song != NULL); + assert(song_in_database(song)); + + uri = song_get_uri(song); + list = sticker_list_values("song", uri); + g_free(uri); + + return list; +} + bool sticker_song_set_value(const struct song *song, const char *name, const char *value) |