-/*
- * Copyright (C) 2006-2012 Andre Noll <maan@systemlinux.org>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
-
-/** \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 GUI_THEME_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 \
- PARA_ERROR(FLACDEC_DECODER_ALLOC, "could not allocate stream decoder"), \
- PARA_ERROR(FLACDEC_DECODER_INIT, "could not init stream decoder"), \
- PARA_ERROR(FLACDEC_EOF, "flacdec encountered end of file condition"), \
-
-
-#define FLAC_AFH_ERRORS \
- PARA_ERROR(FLAC_CHAIN_ALLOC, "could not create metadata chain"), \
- PARA_ERROR(FLAC_CHAIN_READ, "could not read meta chain"), \
- PARA_ERROR(FLAC_ITER_ALLOC, "could not allocate meta iterator"), \
- PARA_ERROR(FLAC_VARBLOCK, "variable blocksize not supported"), \
- PARA_ERROR(FLAC_AFH_DECODER_ALLOC, "could not allocate stream decoder"), \
- PARA_ERROR(FLAC_AFH_DECODER_INIT, "could not init stream decoder"), \
- PARA_ERROR(FLAC_SKIP_META, "could not skip metadata"), \
- PARA_ERROR(FLAC_DECODE_POS, "could not get decode position"), \
- PARA_ERROR(FLAC_STREAMINFO, "could not read stream info meta block"), \
-
-
-#define OGG_AFH_COMMON_ERRORS \
- PARA_ERROR(STREAM_PACKETOUT, "ogg stream packet-out error (first packet)"), \
- PARA_ERROR(SYNC_PAGEOUT, "ogg sync page-out error (no ogg file?)"), \
- PARA_ERROR(STREAM_PAGEIN, "ogg stream page-in error (first page)"), \
- PARA_ERROR(OGG_SYNC, "internal ogg storage overflow"), \
- PARA_ERROR(OGG_EMPTY, "no ogg pages found"), \
-
-
-#define SPX_AFH_ERRORS \
- PARA_ERROR(SPX_COMMENT, "invalid speex comment"), \
-
-
-#define SPX_COMMON_ERRORS \
- 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(SPX_DECODER_INIT, "speex decoder initialization failed"), \
- PARA_ERROR(SPX_CTL_BAD_RQ, "speex_decoder_ctl: invalid request"), \
- PARA_ERROR(SPX_CTL_INVAL, "speex_decoder_ctl: invalid argument"), \
-
-#define SPXDEC_FILTER_ERRORS \
- PARA_ERROR(SPX_DECODE, "speex decoding error"), \
- PARA_ERROR(SPX_DECODE_OVERFLOW, "speex decoding overflow"), \
- PARA_ERROR(SPX_EOS, "speex: end of stream"), \
-
-#define BUFFER_TREE_ERRORS \
- PARA_ERROR(BTR_EOF, "buffer tree: end of file"), \
- PARA_ERROR(BTR_NO_CHILD, "btr node has no children"), \
- PARA_ERROR(BTR_NAVAIL, "btr node: value currently unavailable"), \
-
-
-#define BITSTREAM_ERRORS \
- PARA_ERROR(VLC, "invalid vlc code"), \
-
-
-#define WMA_AFH_ERRORS \
- PARA_ERROR(NO_WMA, "asf/wma format not recognized"), \
-
-
-#define WMA_COMMON_ERRORS \
- PARA_ERROR(WMA_NO_GUID, "audio stream guid not found"), \
-
-
-#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_BLOCK_SIZE, "invalid block size"), \
- PARA_ERROR(INCOHERENT_BLOCK_LEN, "incoherent block length"), \
- PARA_ERROR(WMADEC_EOF, "wmadec: end of file"), \