aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-24 14:51:35 +0100
committerMax Kellermann <max@duempel.org>2009-01-24 14:51:35 +0100
commitd449d6abab3c263ae6bcfe2ae5e4465d7a1d149f (patch)
tree3fd7f9073c56a0e6ee2ce639c058dba094055c79 /src/playlist.h
parent6cfe032b94d0f5089d392d1c71235c1efaed2e74 (diff)
downloadmpd-d449d6abab3c263ae6bcfe2ae5e4465d7a1d149f.tar.gz
mpd-d449d6abab3c263ae6bcfe2ae5e4465d7a1d149f.tar.xz
mpd-d449d6abab3c263ae6bcfe2ae5e4465d7a1d149f.zip
playlist: added playlist_get_queue()
To allow code outside playlist.c to access the "queue" object, provide a function which returns a const pointer.
Diffstat (limited to '')
-rw-r--r--src/playlist.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h
index ab6e0979b..3875aaed0 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -94,6 +94,12 @@ void initPlaylist(void);
void finishPlaylist(void);
+/**
+ * Returns the "queue" object of the global playlist instance.
+ */
+const struct queue *
+playlist_get_queue(void);
+
void readPlaylistState(FILE *);
void savePlaylistState(FILE *);