Browse Source

* add SIMDB_ERR_SAMPLER

master
Alex 'AdUser' Z 8 years ago
parent
commit
0e3aa8f989
  1. 2
      src/database.c
  2. 1
      src/simdb.h

2
src/database.c

@ -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";
}

1
src/simdb.h

@ -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 */

Loading…
Cancel
Save