- PARA_ERROR(BAD_USER, "auth request for invalid user"), \
- PARA_ERROR(BAD_AUTH, "authentication failure"), \
-
-
-#define DCCP_RECV_ERRORS \
- PARA_ERROR(DCCP_OVERRUN, "dccp output buffer buffer overrun"), \
-
-
-#define FD_ERRORS \
- PARA_ERROR(FGETS, "fgets error"), \
-
-
-#define WRITE_ERRORS \
- PARA_ERROR(WRITE_SYNTAX, "para_write syntax error"), \
- PARA_ERROR(NO_WAV_HEADER, "wave header not found"), \
- PARA_ERROR(WAV_HEADER_SUCCESS, "successfully read wave header"), \
- PARA_ERROR(NO_DELAY, "no initial delay"), \
- PARA_ERROR(DELAY_TIMEOUT, "initial delay timeout"), \
-
-
-#define ALSA_WRITE_ERRORS \
- PARA_ERROR(BROKEN_CONF, "Broken alsa configuration"), \
- PARA_ERROR(ACCESS_TYPE, "alsa access type not available"), \
- PARA_ERROR(SAMPLE_FORMAT, "sample format not available"), \
- PARA_ERROR(CHANNEL_COUNT, "channels count not available"), \
- PARA_ERROR(HW_PARAMS, "unable to install hw params"), \
- PARA_ERROR(BAD_PERIOD, "can not use period equal to buffer size"), \
- PARA_ERROR(ALSA_WRITE, "alsa write error"), \
- PARA_ERROR(PCM_OPEN, "unable to open pcm"), \
- PARA_ERROR(PHYSICAL_WIDTH, "unable to determine bytes per frame"), \
- PARA_ERROR(GET_BUFFER_TIME, "snd_pcm_hw_params_get_buffer_time_max() failed"), \
- PARA_ERROR(SET_BUFFER_TIME, "snd_pcm_hw_params_set_buffer_time_near() failed"), \
- PARA_ERROR(SET_RATE, "snd_pcm_hw_params_set_rate_near failed"), \
- PARA_ERROR(START_THRESHOLD, "snd_pcm_sw_params_set_start_threshold() failed"), \
- PARA_ERROR(STOP_THRESHOLD, "snd_pcm_sw_params_set_stop_threshold() failed"), \
-
-
-#define FILE_WRITE_ERRORS \
- PARA_ERROR(FW_WRITE, "file writer write error"), \
- PARA_ERROR(FW_OPEN, "file writer: can not open output file"), \
- PARA_ERROR(FW_NO_FILE, "task started without open file"), \
-
-
-#define WRITE_COMMON_ERRORS \
- PARA_ERROR(WRITE_COMMON_SYNTAX, "syntax error in write option"), \
-
-
-#define AACDEC_FILTER_ERRORS \
- PARA_ERROR(AACDEC_INIT, "failed to init aac decoder"), \
- PARA_ERROR(AAC_DECODE, "aac decode error"), \
- PARA_ERROR(AAC_OVERRUN, "aac output buffer overrun"), \
-
-
-#define CHUNK_QUEUE_ERRORS \
- PARA_ERROR(QUEUE, "packet queue overrun"), \
-
-
-/** \endcond */
-
-/**
- * The subsystem shift.
- *
- * 255 error codes ought to be enough for every subsystem. Use the higher bits
- * of the return value to encode the subsystem number.
- */
-#define SS_SHIFT 8
-
-/**
- * Compute the subsystem offset.
- *
- * It is given by x * 2**8 where \a x is the subsystem number.
- */
-#define SS_OFFSET(ss) (SS_ ## ss << SS_SHIFT)
-
-/**
- * Make the enum of all errors of one subsystem.
- *
- * As zero should not be an error, we define a dummy enum entry with value
- * 2**ss. That lets the real errors start at 2**ss + 1.
- */
-#define SS_ENUM(ss) enum {\
- E_ ## ss ## _DUMMY = SS_OFFSET(ss), \
- ss ## _ERRORS}
-
-/**
- * Determine the subsystem number from the error number.
- *
- * Easy, it's just \a num / 2**8.
- */
-#define ERRNUM_TO_SS(num) ((num) >> SS_SHIFT)
+ PARA_ERROR(SERVER_EOF, "connection closed by para_server"), \
+ PARA_ERROR(SEXP_BUILD, "could not build S-expression"), \
+ PARA_ERROR(SEXP_DECRYPT, "could not decrypt S-expression"), \
+ PARA_ERROR(SEXP_ENCRYPT, "could not encrypt S-expression"), \
+ PARA_ERROR(SEXP_FIND, "could not find sublist in S-expression"), \
+ PARA_ERROR(SHORT_WRITE, "unexpected short write"), \
+ PARA_ERROR(SIZE_PREFIX, "bad size prefix"), \
+ PARA_ERROR(SPX_COMMENT, "invalid speex comment"), \
+ PARA_ERROR(SPX_CTL_BAD_RQ, "speex_decoder_ctl: invalid request"), \
+ PARA_ERROR(SPX_CTL_INVAL, "speex_decoder_ctl: invalid argument"), \
+ PARA_ERROR(SPX_DECODE_OVERFLOW, "speex decoding overflow"), \
+ PARA_ERROR(SPX_DECODER_INIT, "speex decoder initialization failed"), \
+ PARA_ERROR(SPX_DECODE, "speex decoding error"), \
+ PARA_ERROR(SPX_EOS, "speex: end of stream"), \
+ PARA_ERROR(SPX_HEADER, "can not read speex header"), \
+ PARA_ERROR(SPX_HEADER_MODE, "invalid speex mode in header"), \
+ PARA_ERROR(SPX_VERSION, "incompatible speex bit stream version"), \
+ PARA_ERROR(SSH_KEY_HEADER, "ssh key header not found"), \
+ PARA_ERROR(SSH_PARSE, "could not parse ssh public key"), \
+ PARA_ERROR(STAT_ITEM_PARSE, "failed to parse status item"), \
+ PARA_ERROR(STATUS_TIMEOUT, "status item timeout"), \
+ PARA_ERROR(STREAM_PACKETIN, "ogg stream packet-in error"), \
+ PARA_ERROR(STREAM_PACKETOUT, "ogg stream packet-out error"), \
+ PARA_ERROR(STREAM_PAGEIN, "ogg stream page-in error"), \
+ PARA_ERROR(STREAM_PAGEOUT, "ogg stream page-out error"), \
+ PARA_ERROR(STRFTIME, "strftime() failed"), \
+ PARA_ERROR(SYNC_COMPLETE, "all buddies in sync"), \
+ PARA_ERROR(SYNC_LISTEN_FD, "no fd to listen on"), \
+ PARA_ERROR(SYNC_PAGEOUT, "ogg sync page-out error (no ogg file?)"), \
+ PARA_ERROR(TARGET_EXISTS, "requested target is already present"),\
+ PARA_ERROR(TARGET_NOT_FOUND, "requested target not found"), \
+ PARA_ERROR(TASK_STARTED, "task started"), \
+ PARA_ERROR(TOO_MANY_CLIENTS, "maximal number of stat clients exceeded"), \
+ PARA_ERROR(UCRED_PERM, "permission denied"), \
+ PARA_ERROR(UDP_OVERRUN, "output buffer overrun"), \
+ PARA_ERROR(UNKNOWN_STAT_ITEM, "status item not recognized"), \
+ PARA_ERROR(UNSUPPORTED_AUDIO_FORMAT, "given audio format not supported"), \
+ PARA_ERROR(UNSUPPORTED_FILTER, "given filter not supported"), \
+ PARA_ERROR(USERLIST, "failed to open user list file"), \
+ PARA_ERROR(VLC, "invalid vlc code"), \
+ PARA_ERROR(VORBIS_COMMENTHEADER, "could not create vorbis comment header"), \
+ PARA_ERROR(VORBIS, "vorbis synthesis header-in error (not vorbis?)"), \
+ PARA_ERROR(WAV_BAD_FC, "invalid filter configuration"), \
+ PARA_ERROR(WAV_EOF, "wav filter: end of file"), \
+ PARA_ERROR(WAV_SUCCESS, "successfully wrote wav header"), \
+ PARA_ERROR(WMA_BAD_PARAMS, "invalid WMA parameters"), \
+ PARA_ERROR(WMA_BAD_SUPERFRAME, "invalid superframe"), \
+ PARA_ERROR(WMA_BLOCK_SIZE, "invalid block size"), \
+ PARA_ERROR(WMADEC_EOF, "wmadec: end of file"), \
+ PARA_ERROR(WMA_NO_GUID, "audio stream guid not found"), \
+ PARA_ERROR(WMA_OUTPUT_SPACE, "insufficient output space"), \
+ PARA_ERROR(WRITE_COMMON_EOF, "end of file"), \