summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-25 01:17:45 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-25 01:17:45 +0000
commitdce954d275977d14326249e07e20d988ad1d91f4 (patch)
tree6dcd1c596683f4298a75e7a102af171b8b83bbbf /source3/tdb/tdb.h
parent59c8a608c2c6fa5fc1d342787cf28d5e00075664 (diff)
downloadsamba-dce954d275977d14326249e07e20d988ad1d91f4.tar.gz
samba-dce954d275977d14326249e07e20d988ad1d91f4.tar.bz2
samba-dce954d275977d14326249e07e20d988ad1d91f4.zip
added TDB_MODIFY flag - patch from from luke
(This used to be commit 90b574296e06cd6ed4fedc1e5a8ae412a5e78b45)
Diffstat (limited to 'source3/tdb/tdb.h')
-rw-r--r--source3/tdb/tdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index 949a843e8a..90a1cccfac 100644
--- a/source3/tdb/tdb.h
+++ b/source3/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 };
typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);