aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellerman <max@duempel.org>2008-06-01 22:25:00 +0000
committerEric Wong <normalperson@yhbt.net>2008-06-01 22:25:00 +0000
commit7f6a44ef8e63f50883bc2d0a5159b84efd3246a6 (patch)
treeda9c9c137578d90bf91b3bac824c90fa55240856 /src
parent8a4dff14ad7560aae83e9155d0c62ba7f8c101fd (diff)
downloadmpd-7f6a44ef8e63f50883bc2d0a5159b84efd3246a6.tar.gz
mpd-7f6a44ef8e63f50883bc2d0a5159b84efd3246a6.tar.xz
mpd-7f6a44ef8e63f50883bc2d0a5159b84efd3246a6.zip
make DecoderControl.state an enum
git-svn-id: https://svn.musicpd.org/mpd/trunk@7369 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/decode.h10
1 files changed, 6 insertions, 4 deletions
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;