-#define OSL_ERRORS \
- PARA_ERROR(OSL_OPENDIR, "can not open directory"), \
- PARA_ERROR(OSL_CHDIR, "fixme"), \
- PARA_ERROR(BAD_DB_DIR, "fixme"), \
- PARA_ERROR(NO_COLUMN_DESC, "fixme"), \
- PARA_ERROR(BAD_BASENAME, "fixme"), \
- PARA_ERROR(BAD_STORAGE_TYPE, "fixme"), \
- PARA_ERROR(BAD_STORAGE_FLAGS, "fixme"), \
- PARA_ERROR(NO_COLUMN_NAME, "fixme"), \
- PARA_ERROR(NO_COLUMNS, "fixme"), \
- PARA_ERROR(BAD_COLUMN_NAME, "fixme"), \
- PARA_ERROR(NO_UNIQUE_RBTREE_COLUMN, "fixme"), \
- PARA_ERROR(NO_RBTREE_COL, "fixme"), \
- PARA_ERROR(DUPLICATE_COL_NAME, "fixme"), \
- PARA_ERROR(BAD_STORAGE_SIZE, "fixme"), \
- PARA_ERROR(NO_COMPARE_FUNC, "fixme"), \
- PARA_ERROR(NULL_OBJECT, "fixme"), \
- PARA_ERROR(BAD_DATA_SIZE, "fixme"), \
- PARA_ERROR(NOT_MAPPED, "file not mapped"), \
- PARA_ERROR(ALREADY_MAPPED, "file already mapped"), \
- PARA_ERROR(BAD_SIZE, "fixme"), \
- PARA_ERROR(TRUNC, "fixme"), \
- PARA_ERROR(UNLINK, "fixme"), \
- PARA_ERROR(EXIST, "file or directory already exists"), \
- PARA_ERROR(ISDIR, "error: is a directory"), \
- PARA_ERROR(NOTDIR, "error: not a directory"), \
- PARA_ERROR(NOENT, "fixme"), \
- PARA_ERROR(OSL_PERM, "fixme"), \
- PARA_ERROR(BAD_TABLE, "table not open"), \
- PARA_ERROR(BAD_TABLE_HEADER, "table header corruption"), \
- PARA_ERROR(BAD_TABLE_DESC, "invalid table description"), \
- PARA_ERROR(RB_KEY_EXISTS, "key already exists in rbtree"), \
- PARA_ERROR(RB_KEY_NOT_FOUND, "key not found in rbtree"), \
- PARA_ERROR(BAD_ID, "fixme"), \
- PARA_ERROR(INDEX_CORRUPTION, "fixme"), \
- PARA_ERROR(BAD_OFFSET, "fixme"), \
- PARA_ERROR(INVALID_OBJECT, "fixme"), \
- PARA_ERROR(MKDIR, "failed to create directory"), \
- PARA_ERROR(OPEN, "failed to open file"), \
- PARA_ERROR(STAT, "can not stat file"), \
- PARA_ERROR(FSTAT, "fstat error"), \
- PARA_ERROR(RENAME, "fixme"), \
- PARA_ERROR(EMPTY, "file empty"), \
- PARA_ERROR(NOSPC, "fixme"), \
- PARA_ERROR(MMAP, "mmap error"), \
- PARA_ERROR(MUNMAP, "munmap failed"), \
- PARA_ERROR(WRITE, "fixme"), \
- PARA_ERROR(LSEEK, "fixme"), \
- PARA_ERROR(BUSY, "fixme"), \
- PARA_ERROR(SHORT_TABLE, "fixme"), \
- PARA_ERROR(NO_MAGIC, "fixme"), \
- PARA_ERROR(VERSION_MISMATCH, "fixme"), \
- PARA_ERROR(BAD_COLUMN_NUM, "fixme"), \
- PARA_ERROR(BAD_TABLE_FLAGS, "fixme"), \
- PARA_ERROR(RBTREE_EMPTY, "fixme"), \
- PARA_ERROR(BAD_ROW, "fixme"), \
- PARA_ERROR(OSL_GETCWD, "can not get current working directory"), \
- PARA_ERROR(OSL_LSTAT, "fixme"), \
-
-
-#define RBTREE_ERRORS \
+#define BUFFER_TREE_ERRORS \
+ PARA_ERROR(BTR_EOF, "buffer tree: end of file"), \
+ PARA_ERROR(BTR_NO_CHILD, "btr node has no children"), \
+
+#define STDOUT_ERRORS \
+ PARA_ERROR(STDOUT_EOF, "stdout: end of file"), \
+
+
+#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"), \
+ 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_BLOCK_SIZE, "invalid block size"), \
+ PARA_ERROR(INCOHERENT_BLOCK_LEN, "incoherent block length"), \
+ PARA_ERROR(WMADEC_EOF, "wmadec: end of file"), \
+
+
+#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"), \
+ PARA_ERROR(PREBUFFER_SUCCESS, "prebuffering complete"), \
+
+
+#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"), \
+ PARA_ERROR(OSS_EOF, "oss: end of file"), \
+
+
+#define COMPRESS_FILTER_ERRORS \
+ PARA_ERROR(COMPRESS_SYNTAX, "syntax error in compress filter config"), \
+ PARA_ERROR(COMPRESS_EOF, "compress: end of file"), \
+
+
+#define WAV_FILTER_ERRORS \
+ PARA_ERROR(WAV_BAD_FC, "invalid filter chain configuration"), \
+ PARA_ERROR(WAV_EOF, "wav filter: end of file"), \
+ PARA_ERROR(WAV_SUCCESS, "successfully wrote wav header"), \
+
+
+#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"), \