The UI shortcuts may remove songs from the queue with no way of notifying the stack layer. The UI should call the stack_top_pop() function to check if the top playlist is empty and ready for removal. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
23 lines
438 B
C++
23 lines
438 B
C++
#ifndef LIBSARIA_PLAYLIST_STACK_H
|
|
#define LIBSARIA_PLAYLIST_STACK_H
|
|
|
|
#include <libsaria/playlist.h>
|
|
|
|
#include <list>
|
|
using namespace std;
|
|
|
|
namespace libsaria
|
|
{
|
|
|
|
void stack_playlist(Playlist *);
|
|
Playlist *new_playlist(string, unsigned int);
|
|
void add_to_playlist(list<sid_t> &);
|
|
Playlist *stack_top();
|
|
void stack_top_pop();
|
|
string next_file();
|
|
void stack_init();
|
|
|
|
}; /* Namespace: libsaria */
|
|
|
|
#endif /* LIBSARIA_PLAYLIST_STACK_H */
|