diff options
author | Max Kellermann <max@duempel.org> | 2009-01-24 14:51:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-24 14:51:35 +0100 |
commit | d449d6abab3c263ae6bcfe2ae5e4465d7a1d149f (patch) | |
tree | 3fd7f9073c56a0e6ee2ce639c058dba094055c79 /src/playlist.c | |
parent | 6cfe032b94d0f5089d392d1c71235c1efaed2e74 (diff) | |
download | mpd-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 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c index 238502fee..9d1f4f5b4 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -132,6 +132,12 @@ void finishPlaylist(void) g_rand = NULL; } +const struct queue * +playlist_get_queue(void) +{ + return &playlist.queue; +} + void clearPlaylist(void) { stopPlaylist(); |