Commit 7f6a44ef authored by Max Kellerman's avatar Max Kellerman Committed by Eric Wong

make DecoderControl.state an enum

git-svn-id: https://svn.musicpd.org/mpd/trunk@7369 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 8a4dff14
......@@ -27,9 +27,11 @@
#define DECODE_TYPE_FILE 0
#define DECODE_TYPE_URL 1
#define DECODE_STATE_STOP 0
#define DECODE_STATE_START 1
#define DECODE_STATE_DECODE 2
enum decoder_state {
DECODE_STATE_STOP = 0,
DECODE_STATE_START,
DECODE_STATE_DECODE
};
#define DECODE_ERROR_NOERROR 0
#define DECODE_ERROR_UNKTYPE 10
......@@ -38,7 +40,7 @@
typedef struct _DecoderControl {
Notify notify;
volatile mpd_sint8 state;
volatile enum decoder_state state;
volatile mpd_sint8 stop;
volatile mpd_sint8 start;
volatile mpd_uint16 error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment