Sync flags and DB codes

This commit is contained in:
Sergey Yelin 2011-07-18 19:39:14 +04:00
parent 7bdfbacdc9
commit fad7dd5129
2 changed files with 3 additions and 0 deletions

View file

@ -84,6 +84,8 @@
*/
#define DB_TYPE_BTREE DB_BTREE /* 1 */
#define DB_TYPE_HASH DB_HASH /* 2 */
#define DB_TYPE_RECNO DB_RECNO /* 3 */
#define DB_TYPE_QUEUE DB_QUEUE /* 4 */
/**
* Error codes -- chosen so that we do not conflict with other packages, particularly

View file

@ -88,6 +88,7 @@
-define(ERROR_DB_ACTIVE, -29007). % Database is currently active; operation requires otherwise
-define(ERROR_INVALID_CMD, -29008). % Invalid command
-define(ERROR_INVALID_DB_TYPE,-29009). % Invalid database type
-define(ERROR_INVALID_VALUE, -29010). % Invalid CRC-32 on value
%% DB (user visible) error return codes.
-define(DB_BUFFER_SMALL, -30999). % User memory too small for return.