+
+#define WMA_COMMON_ERRORS \
+ PARA_ERROR(WMA_NO_GUID, "audio stream guid not found"), \
+ PARA_ERROR(WMA_BAD_ASF_HEADER, "invalid asf header"), \
+
+
+#define WMADEC_FILTER_ERRORS \
+ PARA_ERROR(WMA_BAD_PARAMS, "invalid WMA parameters"), \
+ PARA_ERROR(WMA_OUTPUT_SPACE, "insufficient output space"), \
+ PARA_ERROR(WMA_BAD_SUPERFRAME, "invalid superframe"), \
+ PARA_ERROR(WMA_DECODE, "wma decode error"), \
+ PARA_ERROR(INCOHERENT_BLOCK_LEN, "incoherent block length"), \
+
+
+#define BITSTREAM_ERRORS \
+ PARA_ERROR(TABLE_ALLOC, "failed to allocate table"), \
+ PARA_ERROR(BAD_CODES, "detected incorrect codes")
+
+
+#define IMDCT_ERRORS \
+ PARA_ERROR(FFT_BAD_PARAMS, "invalid params for fft"), \
+
+
+#define PREBUFFER_FILTER_ERRORS \
+ PARA_ERROR(PREBUFFER_SYNTAX, "syntax error in prebuffer filter config"), \
+
+
+#define OSS_WRITE_ERRORS \
+ PARA_ERROR(BAD_SAMPLE_FORMAT, "sample format not supported"), \
+ PARA_ERROR(BAD_CHANNEL_COUNT, "channel count not supported"), \
+ PARA_ERROR(BAD_SAMPLERATE, "sample rate not supported"), \
+
+
+#define COMPRESS_FILTER_ERRORS \
+ PARA_ERROR(COMPRESS_SYNTAX, "syntax error in compress filter config"), \
+
+
+#define WAV_FILTER_ERRORS \
+ PARA_ERROR(WAV_BAD_FC, "invalid filter chain configuration"), \
+
+
+#define FEC_ERRORS \
+ PARA_ERROR(FEC_BAD_IDX, "invalid index vector"), \
+ PARA_ERROR(FEC_SINGULAR, "unexpected singular matrix"), \
+ PARA_ERROR(FEC_PIVOT, "pivot column not found"), \
+ PARA_ERROR(FEC_PARMS, "invalid fec parameters"), \
+
+
+#define FECDEC_FILTER_ERRORS \
+ PARA_ERROR(BAD_FEC_HEADER, "invalid fec header"), \
+ PARA_ERROR(BAD_SLICE_SIZE, "slice size zero or too large"), \
+ PARA_ERROR(BAD_SLICE_NUM, "invalid slice number"), \
+ PARA_ERROR(FECDEC_OVERRUN, "fecdec output buffer overrun"), \
+ PARA_ERROR(FECDEC_EOF, "received eof packet"), \
+
+
+#define AMP_FILTER_ERRORS \
+ PARA_ERROR(AMP_SYNTAX, "syntax error in amp filter config"), \
+
+
+#define SEND_COMMON_ERRORS \
+ PARA_ERROR(MAX_CLIENTS, "maximal number of clients exceeded"), \
+
+
+#define CLIENT_ERRORS \
+ PARA_ERROR(TASK_STARTED, "task started"), \
+
+
+#define AFH_ERRORS \
+ PARA_ERROR(AFH_SYNTAX, "afh syntax error"), \
+ PARA_ERROR(AFH_SHORT_WRITE, "afh short write"), \
+
+
+#define AFH_COMMON_ERRORS \
+ PARA_ERROR(AUDIO_FORMAT, "audio format not recognized"), \
+
+
+#define ACL_ERRORS \
+ PARA_ERROR(ACL_PERM, "access denied by acl"), \
+
+
+#define FSCK_ERRORS \
+ PARA_ERROR(FSCK_SYNTAX, "fsck syntax error"), \
+ PARA_ERROR(RANGE_VIOLATION, "range violation detected, very bad"), \
+ PARA_ERROR(NOT_A_REGULAR_FILE, "not a regular file"), \
+
+#define AFS_ERRORS \
+ PARA_ERROR(BAD_TABLE_NAME, "invalid table"), \
+ PARA_ERROR(INPUT_TOO_LARGE, "input too large for stdin command"), \
+ PARA_ERROR(AFS_SYNTAX, "afs syntax error"), \
+ PARA_ERROR(AFS_SIGNAL, "afs caught deadly signal"), \
+ PARA_ERROR(AFS_SOCKET, "afs socket not writable"), \
+ PARA_ERROR(AFS_SHORT_READ, "short read from afs socket"), \
+ PARA_ERROR(OSL, "osl error"), \
+
+
+#define MOOD_ERRORS \
+ PARA_ERROR(NO_MOOD, "no mood available"), \
+ PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
+
+
+#define MM_ERRORS \
+ PARA_ERROR(MOOD_SYNTAX, "mood syntax error"), \
+
+
+#define ATTRIBUTE_ERRORS \
+ PARA_ERROR(ATTR_SYNTAX, "attribute syntax error"), \
+ PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
+ PARA_ERROR(ATT_TABLE_FULL, "no more space left in attribute table"), \
+
+
+#define BLOB_ERRORS \
+ PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
+
+
+#define PLAYLIST_ERRORS \
+ PARA_ERROR(PLAYLIST_LOADED, ""), /* not really an error */ \
+ PARA_ERROR(PATH_FOUND, ""), /* not really an error */ \
+ PARA_ERROR(PLAYLIST_EMPTY, "attempted to load empty playlist"), \
+
+
+#define AFT_ERRORS \
+ PARA_ERROR(BAD_AFSI, "invaiid afs info"), \
+ PARA_ERROR(LOCALTIME, "localtime() failed"), \
+ PARA_ERROR(STRFTIME, "strftime() failed"), \
+ PARA_ERROR(BAD_PATH, "invalid path"), \
+ PARA_ERROR(BAD_SORT, "invalid sorting method"), \
+ PARA_ERROR(FNMATCH, "fnmatch error"), \
+ PARA_ERROR(NO_MATCH, "no matches"), \
+ PARA_ERROR(NO_AFHI, "audio format handler info required"), \
+ PARA_ERROR(AFT_SYNTAX, "audio file table syntax error"), \
+ PARA_ERROR(HASH_MISMATCH, "hash mismatch, consider re-add"), \
+
+
+#define USER_LIST_ERRORS \
+ PARA_ERROR(USERLIST, "failed to open user list file"), \
+
+
+#define OSX_WRITE_ERRORS \
+ PARA_ERROR(STREAM_FORMAT, "could not set stream format"), \
+ PARA_ERROR(ADD_CALLBACK, "can not add callback"), \
+ PARA_ERROR(OPEN_COMP, "OpenAComponent() error"), \
+ PARA_ERROR(UNIT_INIT, "AudioUnitInitialize() error"), \
+ PARA_ERROR(UNIT_START, "AudioUnitStart() error"), \
+ PARA_ERROR(DEFAULT_COMP, "can not find default audio output component"), \
+
+
+#define AUDIOC_ERRORS \
+ PARA_ERROR(AUDIOC_SYNTAX, "audioc syntax error"), \
+ PARA_ERROR(AUDIOC_READ, "audioc read error"), \
+ PARA_ERROR(AUDIOC_WRITE, "audioc write error"), \
+ PARA_ERROR(AUDIOC_OVERRUN, "audioc buffer overrun"), \
+
+
+#define CLIENT_COMMON_ERRORS \
+ PARA_ERROR(CLIENT_SYNTAX, "syntax error"), \
+ PARA_ERROR(INVALID_CHALLENGE, "did not receive valid challenge"), \
+ PARA_ERROR(NO_CONFIG, "config file not found"), \
+ PARA_ERROR(BAD_CONFIG, "syntax error in config file"), \
+ PARA_ERROR(CLIENT_AUTH, "authentication failed"), \
+ PARA_ERROR(SERVER_EOF, "connection closed by para_server"), \
+
+
+#define SCHED_ERRORS \
+ PARA_ERROR(TASK_KILLED, "task killed"), \
+ PARA_ERROR(TASK_UNREGISTERED, "task has been unscheduled"), \
+ PARA_ERROR(NO_SUCH_TASK, "task not found"), \
+ PARA_ERROR(NOT_INITIALIZED, "scheduler not yet initialized"), \
+
+
+#define STDIN_ERRORS \
+ PARA_ERROR(STDIN_EOF, "end of file"), \
+
+