aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-03 21:48:17 +0100
committerMax Kellermann <max@duempel.org>2008-11-03 21:48:17 +0100
commitcfaf85e37de7261201d863ad80e06801d52baab6 (patch)
tree853a6a235dc516d1be52c2aeede9533e721f6dbe /src
parentec6d26788a45825f3066de034f246bec8245b015 (diff)
downloadmpd-cfaf85e37de7261201d863ad80e06801d52baab6.tar.gz
mpd-cfaf85e37de7261201d863ad80e06801d52baab6.tar.xz
mpd-cfaf85e37de7261201d863ad80e06801d52baab6.zip
decoder: converted DECODE_ERROR_* to enum
Diffstat (limited to '')
-rw-r--r--src/decoder_control.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h
index 9729396eb..c710d3038 100644
--- a/src/decoder_control.h
+++ b/src/decoder_control.h
@@ -34,16 +34,18 @@ enum decoder_state {
DECODE_STATE_DECODE
};
-#define DECODE_ERROR_NOERROR 0
-#define DECODE_ERROR_UNKTYPE 10
-#define DECODE_ERROR_FILE 20
+enum decoder_error {
+ DECODE_ERROR_NOERROR = 0,
+ DECODE_ERROR_UNKTYPE,
+ DECODE_ERROR_FILE,
+};
struct decoder_control {
struct notify notify;
volatile enum decoder_state state;
volatile enum decoder_command command;
- volatile uint16_t error;
+ volatile enum decoder_error error;
bool seek_error;
bool seekable;
volatile double seek_where;