From dce954d275977d14326249e07e20d988ad1d91f4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Apr 2000 01:17:45 +0000 Subject: added TDB_MODIFY flag - patch from from luke (This used to be commit 90b574296e06cd6ed4fedc1e5a8ae412a5e78b45) --- source3/tdb/tdb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/tdb/tdb.h') 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 *); -- cgit