make DecoderControl.state an enum

git-svn-id: https://svn.musicpd.org/mpd/trunk@7369 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellerman 2008-06-01 22:25:00 +00:00 committed by Eric Wong
parent 8a4dff14ad
commit 7f6a44ef8e

View File

@ -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;