@ -162,6 +162,8 @@ simdb_error(int error) {
return "no such record in database";
} else if (error == SIMDB_ERR_USAGE) {
return "wrong parameters passed to finction";
} else if (error == SIMDB_ERR_SAMPLER) {
return "given file not an image, damaged or has unsupported format";
}
return "unknown error";
@ -35,6 +35,7 @@
#define SIMDB_ERR_NXRECORD -5 /**< no such record in database */
#define SIMDB_ERR_READONLY -6 /**< database opened in read-only mode */
#define SIMDB_ERR_USAGE -7 /**< wrong arguments passed */
#define SIMDB_ERR_SAMPLER -8 /**< given file not an image, damaged or has unsupported format */
/** @} */
/** opaque database handler */