- 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(NOTHING_FOUND, "no audio files found"), \
-
-
-#define MYSQL_SELECTOR_ERRORS \
- PARA_ERROR(MYSQL_SYNTAX, "mysql syntax error"), \
- PARA_ERROR(NOTCONN, "not connected to mysql server"), \
- PARA_ERROR(TOOBIG, "mysql: file too large"), \
- PARA_ERROR(NAMETOOLONG, "mysql: name too long"), \
- PARA_ERROR(QFAILED, "mysql query failed"), \
- PARA_ERROR(NOROW, "row is NULL"), \
- PARA_ERROR(NOATTS, "can not get attributes from mysql table"), \
- PARA_ERROR(NORESULT, "error while fetching mysql result"), \
- PARA_ERROR(EMPTY_RESULT, "result is empty"), \
- PARA_ERROR(ESCAPE, "can not escape string"), \
- 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"), \
- PARA_ERROR(MYSQL_INIT, "can not initialize mysql connection"), \
- PARA_ERROR(NO_MYSQL_PASSWD, "fatal: no mysql passord given"), \
- PARA_ERROR(NO_AF_DIR, "fatal: audio file directory not given"), \