aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_sticker.h
diff options
context:
space:
mode:
authorEric Wollesen <ericw@xmtp.net>2009-03-03 07:49:23 +0100
committerMax Kellermann <max@duempel.org>2009-03-03 07:49:23 +0100
commitb8ebb748c9e4da74c361c3b4e5840891eaf22864 (patch)
tree69368bd8f3e382be05644601f44b117c40ffdd45 /src/song_sticker.h
parent95b53281a45841bc4d981f131ac452615e923575 (diff)
downloadmpd-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.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 a09279c52..68124580f 100644
--- a/src/song_sticker.h
+++ b/src/song_sticker.h
@@ -20,6 +20,7 @@
#define SONG_STICKER_H
#include <stdbool.h>
+#include <glib.h>
struct song;
@@ -39,6 +40,15 @@ 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.
*/
bool