X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=ae94157f81690568fc20a741c0f1757ef664e83a;hp=ab7aed25f0c8a86ca6717bab925af60c0fe13a76;hb=53077ea78f01e197e84529ae42558af5c3a68429;hpb=408458ad84180244b6a2ac327d13685bfb2b0867 diff --git a/error.h b/error.h index ab7aed25..ae94157f 100644 --- a/error.h +++ b/error.h @@ -38,6 +38,24 @@ DEFINE_ERRLIST_OBJECT_ENUM; 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?)"), \ @@ -230,6 +248,7 @@ extern const char **para_errlist[]; #define AUDIOC_ERRORS \ PARA_ERROR(AUDIOC_SYNTAX, "audioc syntax error"), \ + PARA_ERROR(AUDIOC_EOF, "audioc: end of file"), \ #define CLIENT_COMMON_ERRORS \ @@ -440,7 +459,10 @@ extern const char **para_errlist[]; #define CHUNK_QUEUE_ERRORS \ PARA_ERROR(QUEUE, "packet queue overrun"), \ -#define INTERACTIVE_ERRORS + +#define INTERACTIVE_ERRORS \ + PARA_ERROR(I9E_EOF, "end of input"), \ + PARA_ERROR(I9E_SETUPTERM, "failed to set up terminal"), \ /** \endcond errors */