summaryrefslogtreecommitdiff
path: root/source3/tdb/common/tdb_private.h
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-19 11:19:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:04 -0500
commit39c1ebff22aaacbe2745e7b6ad832e9ed302fe81 (patch)
tree010f391cb7fd5deb6d981d7bff9fb6e9028c4197 /source3/tdb/common/tdb_private.h
parentc909c6722b065e898da43b0e1448fc4314649553 (diff)
downloadsamba-39c1ebff22aaacbe2745e7b6ad832e9ed302fe81.tar.gz
samba-39c1ebff22aaacbe2745e7b6ad832e9ed302fe81.tar.bz2
samba-39c1ebff22aaacbe2745e7b6ad832e9ed302fe81.zip
r21444: Check in tdb_parse_record. Not merging to the other branches yet, we need to
agree on the behaviour of non-existing records. Tridge, can you comment? Should we change tdb_fetch, or should we have different concepts in tdb_fetch() and tdb_parse_record() ? Volker (This used to be commit fba79e75c0138c3ae4e73014a1d1a2c2045c35bb)
Diffstat (limited to 'source3/tdb/common/tdb_private.h')
-rw-r--r--source3/tdb/common/tdb_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/tdb/common/tdb_private.h b/source3/tdb/common/tdb_private.h
index 56f609fb82..7fc136c6a7 100644
--- a/source3/tdb/common/tdb_private.h
+++ b/source3/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);
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);