para_client: use the error subsystem
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index 430c12f9fa82be81dc8b876f43a40bc32a1cebc6..5dd750a748edea7b22c378948d29a9a09dc843a8 100644 (file)
--- a/error.h
+++ b/error.h
@@ -20,6 +20,7 @@
 
 /** \cond list of all subsystems that support the shiny error facility */
 enum para_subsystem {
 
 /** \cond list of all subsystems that support the shiny error facility */
 enum para_subsystem {
+       SS_CLIENT,
        SS_SCHED,
        SS_GUI,
        SS_TIME,
        SS_SCHED,
        SS_GUI,
        SS_TIME,
@@ -88,6 +89,13 @@ enum para_subsystem {
 extern const char **para_errlist[];
 /** \endcond */
 
 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 SCHED_ERRORS \
        PARA_ERROR(TASK_KILLED, "task killed"), \
        PARA_ERROR(NO_SUCH_TASK, "task not found"), \
@@ -524,6 +532,7 @@ SS_ENUM(WRITE_COMMON);
 SS_ENUM(ALSA_WRITER);
 SS_ENUM(FILE_WRITER);
 SS_ENUM(RINGBUFFER);
 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 */
 /** \endcond */
 #undef PARA_ERROR
 /* rest of the world only sees the error text */