aboutsummaryrefslogtreecommitdiff
path: root/src/ack.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 21:40:32 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 21:40:32 +0200
commitd0a9dcdcf53dfce14fad41166001b6c3ffb754bc (patch)
tree66b255f766cc680a1e9c43cf071326ab1142f3d2 /src/ack.h
parent7aca4cd194b8ec2546e598800b153a5009b1792d (diff)
ack: converted ACK_ERROR_* macros to enum
Diffstat (limited to 'src/ack.h')
-rw-r--r--src/ack.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/ack.h b/src/ack.h
index 1b2950e2..1bba007c 100644
--- a/src/ack.h
+++ b/src/ack.h
@@ -19,19 +19,20 @@
#ifndef ACK_H
#define ACK_H
-/* Common Errors */
-#define ACK_ERROR_NOT_LIST 1
-#define ACK_ERROR_ARG 2
-#define ACK_ERROR_PASSWORD 3
-#define ACK_ERROR_PERMISSION 4
-#define ACK_ERROR_UNKNOWN 5
+enum ack {
+ ACK_ERROR_NOT_LIST = 1,
+ ACK_ERROR_ARG = 2,
+ ACK_ERROR_PASSWORD = 3,
+ ACK_ERROR_PERMISSION = 4,
+ ACK_ERROR_UNKNOWN = 5,
-#define ACK_ERROR_NO_EXIST 50
-#define ACK_ERROR_PLAYLIST_MAX 51
-#define ACK_ERROR_SYSTEM 52
-#define ACK_ERROR_PLAYLIST_LOAD 53
-#define ACK_ERROR_UPDATE_ALREADY 54
-#define ACK_ERROR_PLAYER_SYNC 55
-#define ACK_ERROR_EXIST 56
+ ACK_ERROR_NO_EXIST = 50,
+ ACK_ERROR_PLAYLIST_MAX = 51,
+ ACK_ERROR_SYSTEM = 52,
+ ACK_ERROR_PLAYLIST_LOAD = 53,
+ ACK_ERROR_UPDATE_ALREADY = 54,
+ ACK_ERROR_PLAYER_SYNC = 55,
+ ACK_ERROR_EXIST = 56,
+};
#endif