diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:55:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:55:13 +0930 |
commit | 30294c7b91456dd49b89a9b26eb0b1066087815c (patch) | |
tree | 8bf72d6834fafb9e030d120e7f6c881068cdb3af /lib/tdb2/private.h | |
parent | e6cbc0f00ec9ecb4c014ee484746d565382d5f67 (diff) | |
download | samba-30294c7b91456dd49b89a9b26eb0b1066087815c.tar.gz samba-30294c7b91456dd49b89a9b26eb0b1066087815c.tar.bz2 samba-30294c7b91456dd49b89a9b26eb0b1066087815c.zip |
tdb2: unify tdb1_traverse into tdb_traverse
Switch on the TDB_VERSION1 flag; we now only do a tdb1_traverse_read on a
read-only database, as there is no tdb2 equivalent.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit cc2d609dfca7192305ad477b8c2b52cfdc1aa9be)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r-- | lib/tdb2/private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index 20884acccf..e981372351 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -658,6 +658,11 @@ int tdb1_allrecord_unlock(struct tdb_context *tdb, int ltype); int tdb1_transaction_recover(struct tdb_context *tdb); int tdb1_transaction_cancel(struct tdb_context *tdb); +/* tdb1_traverse.c: */ +int tdb1_traverse(struct tdb_context *tdb, + int (*)(struct tdb_context *, TDB_DATA, TDB_DATA, void *), + void *private_data); + /* tdb1_tdb.c: */ int tdb1_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); enum TDB_ERROR tdb1_fetch(struct tdb_context *tdb, TDB_DATA key, |