X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=e9083f75f42eb743f5416faa4d30aea864a314dd;hp=ee8cff348820fccf584d34f9e1e19a62c08a8ac7;hb=340eefa8e83c72319de0feda257d49e668b33f22;hpb=70de5747997ee637dba6f817abccc56ec1340875 diff --git a/error.h b/error.h index ee8cff34..e9083f75 100644 --- a/error.h +++ b/error.h @@ -74,6 +74,7 @@ enum para_subsystem { SS_PLAYLIST, SS_SHA1, SS_RBTREE, + SS_FSCK, NUM_SS }; @@ -94,6 +95,12 @@ enum para_subsystem { extern const char **para_errlist[]; /** \endcond */ +#define FSCK_ERRORS \ + PARA_ERROR(FSCK_SYNTAX, "fsck syntax error"), \ + PARA_ERROR(RANGE_VIOLATION, "range violation detected, very bad"), \ + PARA_ERROR(NOT_A_REGULAR_FILE, "not a regular file"), \ + + #define OSL_ERRORS \ PARA_ERROR(OSL_OPENDIR, "can not open directory"), \ PARA_ERROR(OSL_CHDIR, "failed to change directory"), \ @@ -149,7 +156,6 @@ extern const char **para_errlist[]; PARA_ERROR(RBTREE_EMPTY, "rbtree is empty"), \ PARA_ERROR(BAD_ROW, "invalid row"), \ PARA_ERROR(OSL_GETCWD, "can not get current working directory"), \ - PARA_ERROR(OSL_LSTAT, "lstat error"), \ #define RBTREE_ERRORS \ @@ -686,6 +692,7 @@ SS_ENUM(BLOB); SS_ENUM(PLAYLIST); SS_ENUM(SHA1); SS_ENUM(RBTREE); +SS_ENUM(FSCK); /** \endcond */ #undef PARA_ERROR /* rest of the world only sees the error text */