diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-19 11:19:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:04 -0500 |
commit | 39c1ebff22aaacbe2745e7b6ad832e9ed302fe81 (patch) | |
tree | 010f391cb7fd5deb6d981d7bff9fb6e9028c4197 /source3/tdb/include | |
parent | c909c6722b065e898da43b0e1448fc4314649553 (diff) | |
download | samba-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/include')
-rw-r--r-- | source3/tdb/include/tdb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/tdb/include/tdb.h b/source3/tdb/include/tdb.h index b783f23a1e..a0f6f98382 100644 --- a/source3/tdb/include/tdb.h +++ b/source3/tdb/include/tdb.h @@ -101,6 +101,10 @@ void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_ enum TDB_ERROR tdb_error(struct tdb_context *tdb); const char *tdb_errorstr(struct tdb_context *tdb); TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key); +int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key, + int (*parser)(TDB_DATA key, TDB_DATA data, + void *private_data), + void *private_data); int tdb_delete(struct tdb_context *tdb, TDB_DATA key); int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); int tdb_append(struct tdb_context *tdb, TDB_DATA key, TDB_DATA new_dbuf); |