Commit d449d6ab authored by Max Kellermann's avatar Max Kellermann

playlist: added playlist_get_queue()

To allow code outside playlist.c to access the "queue" object, provide a function which returns a const pointer.
parent 6cfe032b
......@@ -132,6 +132,12 @@ void finishPlaylist(void)
g_rand = NULL;
}
const struct queue *
playlist_get_queue(void)
{
return &playlist.queue;
}
void clearPlaylist(void)
{
stopPlaylist();
......
......@@ -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 *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment