add CS_ERR_DIET error code to report information irrelevant in diet engine

This commit is contained in:
Nguyen Anh Quynh 2014-02-24 16:47:36 +08:00
parent 3626a35314
commit f7cdbdf501
2 changed files with 3 additions and 0 deletions

2
cs.c
View File

@ -131,6 +131,8 @@ const char *cs_strerror(cs_err code)
return "Dynamic memory management uninitialized (CS_ERR_MEMSETUP)";
case CS_ERR_VERSION:
return "Different API version between core & binding (CS_ERR_VERSION)";
case CS_ERR_DIET:
return "Information irrelevant in diet engine (CS_ERR_DIET)";
}
}

View File

@ -175,6 +175,7 @@ typedef enum cs_err {
CS_ERR_DETAIL, // Information is unavailable because detail option is OFF
CS_ERR_MEMSETUP, // Dynamic memory management uninitialized (see CS_OPT_MEM)
CS_ERR_VERSION, // Unsupported version (bindings)
CS_ERR_DIET, // Access irrelevant data in "diet" engine
} cs_err;
/*