repo.or.cz
/
mpdcron.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add following events: PSTATE, REPEAT, RANDOM, CONSUME, SINGLE, SONGID
[mpdcron.git]
/
mpdcron.h
blob
19db692746c8a40b8d00c0b975c35178323ad606
1
#ifndef __MPDCRON_H__
2
#define __MPDCRON_H__
3
#include <mpd/client.h>
4
#include <mpd/async.h>
5
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
,
15
16
};
17
struct
event_entry
{
18
enum
mpd_idle event
;
19
enum
private_event pevent
;
20
char
*
command
;
21
};
22
23
24
void
do_command
(
struct
event_entry
*
entry
);
25
#endif