summaryrefslogtreecommitdiff
path: root/source/tdb/tdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/tdb/tdb.h')
-rw-r--r--source/tdb/tdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/tdb/tdb.h b/source/tdb/tdb.h
index b24f08b648f..405b2014d42 100644
--- a/source/tdb/tdb.h
+++ b/source/tdb/tdb.h
@@ -51,13 +51,14 @@ typedef struct {
/* flags to tdb_store() */
#define TDB_REPLACE 1
#define TDB_INSERT 2
+#define TDB_MODIFY 3
/* flags for tdb_open() */
#define TDB_CLEAR_IF_FIRST 1
/* error codes */
enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK,
- TDB_ERR_OOM, TDB_ERR_EXISTS};
+ TDB_ERR_OOM, TDB_ERR_EXISTS, TDB_ERR_NOEXIST };
#if STANDALONE
TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,