X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=d62781c449b53f09bc628aee0101e3b9d635847a;hp=b72f5fa6fc459cbf1a74f752c5290d6f4992603c;hb=c430e588047c5db3eb0d043c4dd1378680ec2bcf;hpb=206217ee7b6925f543ba21a7797a4dc32f0d84ab diff --git a/error.h b/error.h index b72f5fa6..d62781c4 100644 --- a/error.h +++ b/error.h @@ -56,6 +56,8 @@ enum para_subsystem { SS_DCCP, SS_DCCP_RECV, SS_DCCP_SEND, + SS_FD, + SS_GUI, SS_RINGBUFFER}; #define NUM_SS (SS_RINGBUFFER + 1) @@ -135,11 +137,11 @@ extern const char **para_errlist[]; #define GRAB_CLIENT_ERRORS \ PARA_ERROR(PEDANTIC_GRAB, "fd not ready and pedantic grab requested"), \ PARA_ERROR(GC_WRITE, "grab client write error"), \ - PARA_ERROR(INVALID_GRAB_MODE, "invalid grab client mode"), \ PARA_ERROR(BAD_GC_SLOT, "invalid slot requested by grab client"), \ PARA_ERROR(BAD_GC_FILTER_NUM, "invalid filter number given"), \ PARA_ERROR(GC_SYNTAX, "grab client syntax error"), \ PARA_ERROR(GC_HELP_GIVEN, ""), /* not really an error */ \ + PARA_ERROR(GC_VERSION_GIVEN, ""), /* not really an error */ \ #define MP3DEC_ERRORS \ @@ -156,6 +158,7 @@ extern const char **para_errlist[]; PARA_ERROR(SIGNAL_SIG_ERR, "signal() retured SIG_ERR"), \ PARA_ERROR(SIGNAL_READ, "read error from signal pipe"), \ PARA_ERROR(WAITPID, "waitpid error"), \ + PARA_ERROR(SIGNAL_PIPE, "failed to setup signal pipe"), \ #define STRING_ERRORS \ @@ -286,6 +289,9 @@ extern const char **para_errlist[]; PARA_ERROR(DCCP_LISTEN, "dccp listen error"), \ PARA_ERROR(DCCP_WRITE, "dccp write error"), \ +#define FD_ERRORS \ + PARA_ERROR(F_GETFL, "failed to get fd flags"), \ + PARA_ERROR(F_SETFL, "failed to set fd flags") /* these do not need error handling (yet) */ #define SERVER_ERRORS @@ -295,6 +301,7 @@ extern const char **para_errlist[]; #define CLOSE_ON_FORK_ERRORS #define DAEMON_ERRORS #define ORTP_SEND_ERRORS +#define GUI_ERRORS #define RINGBUFFER_ERRORS @@ -404,6 +411,8 @@ SS_ENUM(IPC); SS_ENUM(DCCP); SS_ENUM(DCCP_RECV); SS_ENUM(DCCP_SEND); +SS_ENUM(FD); +SS_ENUM(GUI); SS_ENUM(RINGBUFFER); /** \endcond */ #undef PARA_ERROR