ack: converted ACK_ERROR_* macros to enum
This commit is contained in:
27
src/ack.h
27
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
|
||||
|
Reference in New Issue
Block a user