From 7f6a44ef8e63f50883bc2d0a5159b84efd3246a6 Mon Sep 17 00:00:00 2001 From: Max Kellerman Date: Sun, 1 Jun 2008 22:25:00 +0000 Subject: make DecoderControl.state an enum git-svn-id: https://svn.musicpd.org/mpd/trunk@7369 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/decode.h b/src/decode.h index 411646bb2..8ee2a095f 100644 --- a/src/decode.h +++ b/src/decode.h @@ -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; -- cgit v1.2.3