diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-19 11:45:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:36 -0500 |
commit | eaaf246d4fa42df5e590ee5bfe54e672abd26b02 (patch) | |
tree | 04e79b6edf7c136816546ab1d1466763afaebbfb /source4/lib/tdb/common/tdb_private.h | |
parent | 32afb0d15fa2d941ec1c01fd9cf23200481652c9 (diff) | |
download | samba-eaaf246d4fa42df5e590ee5bfe54e672abd26b02.tar.gz samba-eaaf246d4fa42df5e590ee5bfe54e672abd26b02.tar.bz2 samba-eaaf246d4fa42df5e590ee5bfe54e672abd26b02.zip |
r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0
(This used to be commit afe7d7855841066b88859976ac748cbf438a9a9f)
Diffstat (limited to 'source4/lib/tdb/common/tdb_private.h')
-rw-r--r-- | source4/lib/tdb/common/tdb_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index 5277857942..a05f4da0cf 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -196,6 +196,11 @@ int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct * int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec); unsigned char *tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t len); +int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, + tdb_off_t offset, tdb_len_t len, + int (*parser)(TDB_DATA key, TDB_DATA data, + void *private_data), + void *private_data); tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype, struct list_struct *rec); void tdb_io_init(struct tdb_context *tdb); |