convert para_audiod to the new scheduler.
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index 1505fe2eff7b609987e5cac9aed13c478470af1d..8458ae2bb1b7dea13c242949bb2b8763d1213ef2 100644 (file)
--- a/error.h
+++ b/error.h
@@ -35,6 +35,7 @@ enum para_subsystem {
        SS_AUDIOD,
        SS_EXEC,
        SS_STDIN,
+       SS_STDOUT,
        SS_SIGNAL,
        SS_STRING,
        SS_STAT,
@@ -91,6 +92,12 @@ extern const char **para_errlist[];
        PARA_ERROR(STDIN_READ, "failed to read from stdin"), \
        PARA_ERROR(STDIN_EOF, "end of file"), \
 
+
+#define STDOUT_ERRORS \
+       PARA_ERROR(STDOUT_WRITE, "failed to write to stdout"), \
+       PARA_ERROR(STDOUT_EOF, "end of file"), \
+
+
 #define NET_ERRORS \
        PARA_ERROR(SEND, "send error"), \
        PARA_ERROR(RECV, "receive error"), \
@@ -115,12 +122,14 @@ extern const char **para_errlist[];
        PARA_ERROR(TOO_MANY_BAD_CHUNKS, "too many consecutive bad chunks"), \
        PARA_ERROR(INVALID_HEADER, "invalid header packet"), \
        PARA_ERROR(OVERRUN, "outout buffer overrun"), \
+       PARA_ERROR(ORTP_RECV_EOF, "ortp_recv: end of file"), \
 
 
 #define HTTP_RECV_ERRORS \
        PARA_ERROR(SEND_HTTP_REQUEST, "failed to send http request"), \
        PARA_ERROR(MISSING_OK, "did not receive OK message from peer"), \
-       PARA_ERROR(HTTP_RECV_BUF, "did not receive buffer")
+       PARA_ERROR(HTTP_RECV_BUF, "did not receive buffer"), \
+       PARA_ERROR(HTTP_RECV_EOF, "http_recv: end of file"), \
 
 
 #define RECV_ERRORS \
@@ -145,6 +154,7 @@ extern const char **para_errlist[];
 #define FILTER_CHAIN_ERRORS \
        PARA_ERROR(UNSUPPORTED_FILTER, "given filter not supported"), \
        PARA_ERROR(BAD_FILTER_OPTIONS, "invalid filter option given"), \
+       PARA_ERROR(FC_EOF, "filter chain: eof"), \
 
 
 #define STAT_ERRORS \
@@ -186,6 +196,7 @@ extern const char **para_errlist[];
        PARA_ERROR(SIGNAL_READ, "read error from signal pipe"), \
        PARA_ERROR(WAITPID, "waitpid error"), \
        PARA_ERROR(SIGNAL_PIPE, "failed to setup signal pipe"), \
+       PARA_ERROR(SIGNAL_CAUGHT, "caught signal"), \
 
 
 #define STRING_ERRORS \
@@ -318,6 +329,7 @@ extern const char **para_errlist[];
        PARA_ERROR(DCCP_SOCKET, "can not create dccp socket"), \
        PARA_ERROR(DCCP_PACKET_SIZE, "failed to set dccp packet size"), \
        PARA_ERROR(DCCP_SERVICE, "could not get service code"), \
+       PARA_ERROR(DCCP_RECV_EOF, "dccp_recv: end of file"), \
 
 
 #define DCCP_RECV_ERRORS \
@@ -458,6 +470,7 @@ extern const char **para_errlist[];
 SS_ENUM(GUI);
 SS_ENUM(SCHED);
 SS_ENUM(STDIN);
+SS_ENUM(STDOUT);
 SS_ENUM(WAV);
 SS_ENUM(COMPRESS);
 SS_ENUM(TIME);