X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=478aec1f01001c6e0824f4ff9194b7a27bbcc8ed;hp=ceaa6b38b2c6b6102ef6689e9be1d46ec48b6baf;hb=a4dbed1c3c7fb8b1b334aa62edcd8d673b3d18b2;hpb=f2a7b00cf72104a38733b7bf3add9fb19dd71c93 diff --git a/error.h b/error.h index ceaa6b38..478aec1f 100644 --- a/error.h +++ b/error.h @@ -57,6 +57,7 @@ enum para_subsystem { SS_DCCP_RECV, SS_DCCP_SEND, SS_FD, + SS_GUI, SS_RINGBUFFER}; #define NUM_SS (SS_RINGBUFFER + 1) @@ -157,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 \ @@ -238,6 +240,7 @@ extern const char **para_errlist[]; PARA_ERROR(GET_AUDIO_FILE, "can not get current audio file"), \ PARA_ERROR(GET_STREAM, "can not get current stream"), \ PARA_ERROR(NO_STREAM, "no such stream"), \ + PARA_ERROR(AUDIO_FILE, "no such audio file"), \ PARA_ERROR(GET_QUERY, "can not get query for specified stream"), \ PARA_ERROR(TMPFILE, "error while writing temporary file"), \ PARA_ERROR(META, "can not get meta data"), \ @@ -287,6 +290,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 @@ -296,8 +302,8 @@ extern const char **para_errlist[]; #define CLOSE_ON_FORK_ERRORS #define DAEMON_ERRORS #define ORTP_SEND_ERRORS +#define GUI_ERRORS #define RINGBUFFER_ERRORS -#define FD_ERRORS /** @@ -407,6 +413,7 @@ SS_ENUM(DCCP); SS_ENUM(DCCP_RECV); SS_ENUM(DCCP_SEND); SS_ENUM(FD); +SS_ENUM(GUI); SS_ENUM(RINGBUFFER); /** \endcond */ #undef PARA_ERROR