Add following events: PSTATE, REPEAT, RANDOM, CONSUME, SINGLE, SONGID
[mpdcron.git] / mpdcron.h
blob19db692746c8a40b8d00c0b975c35178323ad606
1 #ifndef __MPDCRON_H__
2 #define __MPDCRON_H__
3 #include <mpd/client.h>
4 #include <mpd/async.h>
6 enum private_event {
7 CONNECTED = 0x1,
8 DISCONNECTED = 0x2,
9 SONG_ID = 0x4,
10 PLAYER_STATE = 0x8,
11 OPTIONS_REPEAT = 0x10,
12 OPTIONS_RANDOM = 0x20,
13 OPTIONS_CONSUME = 0x40,
14 OPTIONS_SINGLE = 0x80,
17 struct event_entry {
18 enum mpd_idle event;
19 enum private_event pevent;
20 char *command;
24 void do_command(struct event_entry *entry);
25 #endif