+#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_PARENT_DIED, "fatal: server process terminated"), \
+
+
+#define MOOD_ERRORS \
+ PARA_ERROR(MOOD_SYNTAX, "mood syntax error"), \
+ PARA_ERROR(NO_MOOD, "no mood available"), \
+ PARA_ERROR(MOOD_LOADED, "mood loaded"), \
+ PARA_ERROR(NOT_ADMISSIBLE, "file is not admussible"), \
+
+
+#define ATTRIBUTE_ERRORS \
+ PARA_ERROR(ATTR_SYNTAX, "attribute syntax error"), \
+ PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
+
+#define BLOB_ERRORS \
+ PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
+ PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
+
+
+#define PLAYLIST_ERRORS \
+ PARA_ERROR(NO_PLAYLIST, "no valid playlist found"), \
+ 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, "invaid 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(CLIENT_AUTH, "authentication failed"), \
+ PARA_ERROR(SERVER_EOF, "connection closed by para_server"), \
+ PARA_ERROR(INPUT_EOF, "end of input"), \
+ PARA_ERROR(HANDSHAKE_COMPLETE, ""), /* not really an error */ \
+