-/** \file error.h List of error messages for all subsystems. */
-
-/** \cond errors */
-
-/* List of all subsystems that use paraslash's error facility. */
-DEFINE_ERRLIST_OBJECT_ENUM;
-
-/* these do not need error handling (yet) */
-#define SERVER_ERRORS
-#define TIME_ERRORS
-#define CLOSE_ON_FORK_ERRORS
-#define DAEMON_ERRORS
-#define GUI_ERRORS
-#define RINGBUFFER_ERRORS
-#define SCORE_ERRORS
-#define RBTREE_ERRORS
-#define RECV_ERRORS
-#define IPC_ERRORS
-#define DCCP_SEND_ERRORS
-#define HTTP_SEND_ERRORS
-#define GGO_ERRORS
-#define COLOR_ERRORS
-#define SIGNAL_ERRORS
-#define FADE_ERRORS
-#define SERVER_COMMAND_LIST_ERRORS
-#define AFS_COMMAND_LIST_ERRORS
-#define AUDIOD_COMMAND_LIST_ERRORS
-#define STDOUT_ERRORS
-#define FILE_WRITE_ERRORS
-#define STDIN_ERRORS
-#define WRITE_ERRORS
-
-extern const char **para_errlist[];
-
-#define FLACDEC_FILTER_ERRORS \
+/** \file error.h List of error codes and messages. */
+
+/** Codes and messages. */
+#define PARA_ERRORS \
+ PARA_ERROR(SYNC_COMPLETE, "all buddies in sync"), \
+ PARA_ERROR(SYNC_LISTEN_FD, "no fd to listen on"), \
+ PARA_ERROR(ALSA_MIX_OPEN, "could not open mixer"), \
+ PARA_ERROR(ALSA_MIX_GET_VAL, "could not read control element state"), \
+ PARA_ERROR(ALSA_MIX_SET_VAL, "could not set control element state"), \
+ PARA_ERROR(ALSA_MIX_RANGE, "value control element out of range"), \
+ PARA_ERROR(RESAMPLE_EOF, "resample filter: end of file"), \
+ PARA_ERROR(LIBSAMPLERATE, "secret rabbit code error"), \
+ PARA_ERROR(OPUS_HEADER, "invalid opus header"), \
+ PARA_ERROR(OPUS_COMMENT, "invalid or corrupted opus comment"), \
+ PARA_ERROR(CREATE_OPUS_DECODER, "could not create opus decoder"), \
+ PARA_ERROR(OPUS_SET_GAIN, "opus: could not set gain"), \
+ PARA_ERROR(OPUS_DECODE, "opus decode error"), \
+ PARA_ERROR(BAD_BAND, "invalid or unexpected band designator"), \
+ PARA_ERROR(SB_PACKET_SIZE, "invalid sideband packet size or protocol error"), \
+ PARA_ERROR(PLAY_SYNTAX, "para_play: syntax error"), \
+ PARA_ERROR(NO_VALID_FILES, "no valid file found in playlist"), \
+ PARA_ERROR(BAD_PLAY_CMD, "invalid command"), \
+ PARA_ERROR(BAD_CHANNEL, "invalid channel"), \