add support for consume mode

info about this feature can be found in mpd docs.
This commit is contained in:
Andrzej Rybczak
2009-04-01 14:51:09 +02:00
parent b33c006fe4
commit 00dcadcc8a
10 changed files with 54 additions and 2 deletions

View File

@@ -175,6 +175,8 @@ typedef struct mpd_Status {
int random;
/* 1 if single mode is on, 0 otherwise */
int single;
/* 1 if consume mode is on, 0 otherwise */
int consume;
/* playlist length */
int playlistLength;
/* playlist, use this to determine when the playlist has changed */
@@ -524,6 +526,8 @@ void mpd_sendRandomCommand(mpd_Connection * connection, int randomMode);
void mpd_sendSingleCommand(mpd_Connection * connection, int singleMode);
void mpd_sendConsumeCommand(mpd_Connection * connection, int consumeMode);
void mpd_sendSetvolCommand(mpd_Connection * connection, int volumeChange);
/* WARNING: don't use volume command, its depreacted */