X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=5dd750a748edea7b22c378948d29a9a09dc843a8;hp=b08a31ec08f76a579b647c1dbd8566eebbd83ac5;hb=d041f4528426640d73d141cec7fd2576f7e8be84;hpb=a95093cd8b62d411b9448aa77768774e1bdd81e5 diff --git a/error.h b/error.h index b08a31ec..5dd750a7 100644 --- a/error.h +++ b/error.h @@ -20,6 +20,7 @@ /** \cond list of all subsystems that support the shiny error facility */ enum para_subsystem { + SS_CLIENT, SS_SCHED, SS_GUI, SS_TIME, @@ -82,12 +83,24 @@ enum para_subsystem { #define ORTP_SEND_ERRORS #define GUI_ERRORS #define RINGBUFFER_ERRORS -#define SCHED_ERRORS + extern const char **para_errlist[]; /** \endcond */ +#define CLIENT_ERRORS \ + PARA_ERROR(CLIENT_SYNTAX, "syntax error"), \ + PARA_ERROR(INVALID_CHALLENGE, "did not receive valid challenge"), \ + PARA_ERROR(CLIENT_AUTH, "authentication failed"), \ + PARA_ERROR(SHORT_CLIENT_WRITE, "short client write"), \ + PARA_ERROR(NO_CONFIG, "config file not found"), \ + +#define SCHED_ERRORS \ + PARA_ERROR(TASK_KILLED, "task killed"), \ + PARA_ERROR(NO_SUCH_TASK, "task not found"), \ + + #define STDIN_ERRORS \ PARA_ERROR(STDIN_READ, "failed to read from stdin"), \ PARA_ERROR(STDIN_EOF, "end of file"), \ @@ -149,6 +162,8 @@ extern const char **para_errlist[]; PARA_ERROR(CLIENT_WRITE, "client write error"), \ PARA_ERROR(UCRED_PERM, "permission denied"), \ PARA_ERROR(INVALID_AUDIOD_CMD, "invalid command"), \ + PARA_ERROR(AUDIOD_SYNTAX, "syntax error"), \ + PARA_ERROR(STATUS_EOF, "server closed status connection"), \ #define FILTER_CHAIN_ERRORS \ @@ -517,6 +532,7 @@ SS_ENUM(WRITE_COMMON); SS_ENUM(ALSA_WRITER); SS_ENUM(FILE_WRITER); SS_ENUM(RINGBUFFER); +SS_ENUM(CLIENT); /** \endcond */ #undef PARA_ERROR /* rest of the world only sees the error text */