Maintain current playlist ID in the player state

cur_plid is 0 if not playing a playlist and takes the playlist ID otherwise.
This commit is contained in:
Julien BLACHE
2010-07-31 12:30:51 +02:00
parent 94b4cd2459
commit 98aaa7c5fa
2 changed files with 42 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ struct player_status {
int volume;
uint32_t plid;
uint32_t id;
uint32_t pos_ms;
int pos_pl;
@@ -106,6 +107,9 @@ player_queue_add(struct player_source *ps);
void
player_queue_clear(void);
void
player_queue_plid(uint32_t plid);
void
player_set_updatefd(int fd);