aboutsummaryrefslogtreecommitdiffstats
path: root/src/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/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 '')
-rw-r--r--src/sticker.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sticker.h b/src/sticker.h
index ab3a35572..689555fb0 100644
--- a/src/sticker.h
+++ b/src/sticker.h
@@ -41,6 +41,8 @@
#ifndef STICKER_H
#define STICKER_H
+#include <glib.h>
+
#include <stdbool.h>
/**
@@ -62,6 +64,15 @@ bool
sticker_enabled(void);
/**
+ * Populates a GList with GPtrArrays of sticker names and values from
+ * an object'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_list_values(const char *type, const char *uri);
+
+/**
* Returns one value from an object's sticker record. The caller must
* free the return value with g_free().
*/