summaryrefslogtreecommitdiffstats
path: root/source/tdb/include/tdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/tdb/include/tdb.h')
-rw-r--r--source/tdb/include/tdb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/tdb/include/tdb.h b/source/tdb/include/tdb.h
index b783f23a1ef..a0f6f983824 100644
--- a/source/tdb/include/tdb.h
+++ b/source/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);