X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=ae94157f81690568fc20a741c0f1757ef664e83a;hp=7a2b1617be8940d678933bd4687c5dee2e4de3f3;hb=53077ea78f01e197e84529ae42558af5c3a68429;hpb=2bba9bbea1af66262085ea5a15eaa11397ac8ce6 diff --git a/error.h b/error.h index 7a2b1617..ae94157f 100644 --- a/error.h +++ b/error.h @@ -35,10 +35,15 @@ DEFINE_ERRLIST_OBJECT_ENUM; #define FILE_WRITE_ERRORS #define STDIN_ERRORS #define WRITE_ERRORS -#define FLACDEC_FILTER_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"), \ @@ -243,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 \ @@ -454,6 +460,10 @@ extern const char **para_errlist[]; PARA_ERROR(QUEUE, "packet queue overrun"), \ +#define INTERACTIVE_ERRORS \ + PARA_ERROR(I9E_EOF, "end of input"), \ + PARA_ERROR(I9E_SETUPTERM, "failed to set up terminal"), \ + /** \endcond errors */ /**