Browse Source

* add SIMDB_ERR_USAGE

master
Alex 'AdUser' Z 7 years ago
parent
commit
2b4b68e86e
  1. 2
      src/database.c
  2. 1
      src/simdb.h

2
src/database.c

@ -170,6 +170,8 @@ simdb_error(int error) {
return "database opened in read-only mode";
} else if (error == SIMDB_ERR_NXRECORD) {
return "no such record in database";
} else if (error == SIMDB_ERR_USAGE) {
return "wrong parameters passed to finction";
}
return "unknown error";
}

1
src/simdb.h

@ -34,6 +34,7 @@
#define SIMDB_ERR_WRONGVERS -4 /**< database version mismatch */
#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 */
/** @} */
/** opaque database handler */

Loading…
Cancel
Save