/*
* Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file error.h list of error messages for all subsystems */
SS_CRYPT,
SS_HTTP_SEND,
SS_ORTP_SEND,
- SS_AFS,
+ SS_AFS_COMMON,
SS_OGG_AFH,
SS_MP3_AFH,
SS_AAC_AFH,
SS_FILE_WRITE,
SS_OSX_WRITE,
SS_USER_LIST,
+ SS_CHUNK_QUEUE,
NUM_SS
};
#define ORTP_SEND_ERRORS
#define GUI_ERRORS
#define RINGBUFFER_ERRORS
-
-
+#define RECV_ERRORS
extern const char **para_errlist[];
/** \endcond */
PARA_ERROR(HTTP_RECV_OVERRUN, "http_recv: outout buffer overrun"), \
-#define RECV_ERRORS \
- PARA_ERROR(RECV_SYNTAX, "recv syntax error"), \
-
-
#define RECV_COMMON_ERRORS \
+ PARA_ERROR(RECV_SYNTAX, "recv syntax error"), \
#define AUDIOD_ERRORS \
#define VSS_ERRORS \
PARA_ERROR(AUDIO_FORMAT, "audio format not recognized"), \
+ PARA_ERROR(CHUNK, "unable to get chunk"), \
-#define AFS_ERRORS \
+#define AFS_COMMON_ERRORS \
PARA_ERROR(GETCWD, "can not get current working directory"), \
PARA_ERROR(CHDIR, "can not change directory"), \
PARA_ERROR(OPENDIR, "can not open directory"), \
#define HTTP_SEND_ERRORS \
- PARA_ERROR(QUEUE, "packet queue overrun"), \
PARA_ERROR(WRITE_OK, "can not check whether fd is writable"), \
+ PARA_ERROR(SEND_QUEUED_CHUNK, "failed to send queued chunk"), \
#define RANDOM_SELECTOR_ERRORS \
PARA_ERROR(F_GETFL, "failed to get fd flags"), \
PARA_ERROR(F_SETFL, "failed to set fd flags"), \
PARA_ERROR(FGETS, "fgets error"), \
+ PARA_ERROR(SELECT, "select error"), \
#define WRITE_ERRORS \
PARA_ERROR(AAC_OVERRUN, "aac output buffer overrun"), \
+#define CHUNK_QUEUE_ERRORS \
+ PARA_ERROR(QUEUE, "packet queue overrun"), \
+
+
/**
* the subsystem shift
*
SS_ENUM(CRYPT);
SS_ENUM(HTTP_SEND);
SS_ENUM(ORTP_SEND);
-SS_ENUM(AFS);
+SS_ENUM(AFS_COMMON);
SS_ENUM(MYSQL_SELECTOR);
SS_ENUM(IPC);
SS_ENUM(DCCP);
SS_ENUM(CLIENT_COMMON);
SS_ENUM(AUDIOC);
SS_ENUM(USER_LIST);
+SS_ENUM(CHUNK_QUEUE);
/** \endcond */
#undef PARA_ERROR
/* rest of the world only sees the error text */