X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=c05948afea6e2937bdb24467377ba272544ef6f0;hp=534e7f97da3afac6ad24c69d5f6f9aec49fc45a6;hb=ac4c4bfa02e9d8adfcc561dfd2377d7c138ce82f;hpb=7a0852896a75d852dbd2ac848ec5c0be3b5dea71 diff --git a/error.h b/error.h index 534e7f97..c05948af 100644 --- a/error.h +++ b/error.h @@ -24,10 +24,9 @@ DEFINE_ERRLIST_OBJECT_ENUM; #define RINGBUFFER_ERRORS #define SCORE_ERRORS #define SHA1_ERRORS -#define RECV_ERRORS #define AFH_COMMON_ERRORS #define RBTREE_ERRORS - +#define RECV_ERRORS extern const char **para_errlist[]; @@ -65,7 +64,6 @@ extern const char **para_errlist[]; PARA_ERROR(INDEX_CORRUPTION, "index corruption detected"), \ PARA_ERROR(INVALID_OBJECT, "reference to invalid object"), \ PARA_ERROR(STAT, "can not stat file"), \ - PARA_ERROR(FSTAT, "fstat error"), \ PARA_ERROR(RENAME, "rename failed"), \ PARA_ERROR(WRITE, "write error"), \ PARA_ERROR(LSEEK, "lseek error"), \ @@ -153,7 +151,6 @@ extern const char **para_errlist[]; PARA_ERROR(NO_CONFIG, "config file not found"), \ PARA_ERROR(CLIENT_AUTH, "authentication failed"), \ PARA_ERROR(SERVER_EOF, "connection closed by para_server"), \ - PARA_ERROR(INPUT_EOF, "end of input"), \ PARA_ERROR(HANDSHAKE_COMPLETE, ""), /* not really an error */ \ @@ -170,7 +167,6 @@ extern const char **para_errlist[]; #define STDOUT_ERRORS \ PARA_ERROR(STDOUT_WRITE, "failed to write to stdout"), \ - PARA_ERROR(STDOUT_EOF, "end of file"), \ #define NET_ERRORS \ @@ -194,12 +190,14 @@ extern const char **para_errlist[]; #define HTTP_RECV_ERRORS \ - PARA_ERROR(HTTP_RECV_EOF, "http_recv: end of file"), \ PARA_ERROR(HTTP_RECV_OVERRUN, "http_recv: output buffer overrun"), \ #define RECV_COMMON_ERRORS \ PARA_ERROR(RECV_SYNTAX, "recv syntax error"), \ + PARA_ERROR(RECV_EOF, "end of file"), \ + PARA_ERROR(RECV_CONNECT, "connection failed"), \ + #define AUDIOD_ERRORS \ @@ -207,6 +205,7 @@ extern const char **para_errlist[]; PARA_ERROR(MISSING_COLON, "syntax error: missing colon"), \ PARA_ERROR(UNSUPPORTED_AUDIO_FORMAT, "given audio format not supported"), \ PARA_ERROR(SIGNAL_CAUGHT, "caught signal"), \ + PARA_ERROR(NOT_PLAYING, "not playing"), \ #define AUDIOD_COMMAND_ERRORS \ @@ -350,13 +349,8 @@ extern const char **para_errlist[]; PARA_ERROR(SHM_DETACH, "can not detach shared memory area"), \ -#define DCCP_ERRORS \ - PARA_ERROR(DCCP_SOCKET, "can not create dccp socket"), \ - - #define DCCP_RECV_ERRORS \ PARA_ERROR(DCCP_OVERRUN, "dccp output buffer buffer overrun"), \ - PARA_ERROR(DCCP_RECV_EOF, "dccp_recv: end of file"), \ #define DCCP_SEND_ERRORS \ @@ -410,7 +404,6 @@ extern const char **para_errlist[]; #define WRITE_COMMON_ERRORS \ PARA_ERROR(WRITE_COMMON_SYNTAX, "syntax error in write option"), \ - PARA_ERROR(WNG_EOF, "wng: end of file"), \ #define AACDEC_ERRORS \