diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:57:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:57:13 +0930 |
commit | 014ca657e600ee2b3b4dc9d2ef482d050cd0917d (patch) | |
tree | 8618af13d707f8e7d7a6ceb80db557421851c48c /lib/tdb2/tdb1_private.h | |
parent | 9140fca812063be69842a6c64030e32c65c9dff1 (diff) | |
download | samba-014ca657e600ee2b3b4dc9d2ef482d050cd0917d.tar.gz samba-014ca657e600ee2b3b4dc9d2ef482d050cd0917d.tar.bz2 samba-014ca657e600ee2b3b4dc9d2ef482d050cd0917d.zip |
tdb2: unify tdb1_parse_record into tdb_parse_record
Switch on the TDB_VERSION1 flag.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 3352e4e947777d4a90a2dd4f3037e1e494231b25)
Diffstat (limited to 'lib/tdb2/tdb1_private.h')
-rw-r--r-- | lib/tdb2/tdb1_private.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/tdb2/tdb1_private.h b/lib/tdb2/tdb1_private.h index 13c51df9f3..5d27c785fc 100644 --- a/lib/tdb2/tdb1_private.h +++ b/lib/tdb2/tdb1_private.h @@ -159,11 +159,12 @@ int tdb1_rec_read(struct tdb_context *tdb, tdb1_off_t offset, struct tdb1_record int tdb1_rec_write(struct tdb_context *tdb, tdb1_off_t offset, struct tdb1_record *rec); int tdb1_do_delete(struct tdb_context *tdb, tdb1_off_t rec_ptr, struct tdb1_record *rec); unsigned char *tdb1_alloc_read(struct tdb_context *tdb, tdb1_off_t offset, tdb1_len_t len); -int tdb1_parse_data(struct tdb_context *tdb, TDB_DATA key, - tdb1_off_t offset, tdb1_len_t len, - int (*parser)(TDB_DATA key, TDB_DATA data, - void *private_data), - void *private_data); +enum TDB_ERROR tdb1_parse_data(struct tdb_context *tdb, TDB_DATA key, + tdb1_off_t offset, tdb1_len_t len, + enum TDB_ERROR (*parser)(TDB_DATA key, + TDB_DATA data, + void *private_data), + void *private_data); tdb1_off_t tdb1_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, uint32_t hash, int locktype, struct tdb1_record *rec); void tdb1_io_init(struct tdb_context *tdb); |