diff options
author | Michael Adam <obnox@samba.org> | 2007-06-25 20:17:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:35 -0500 |
commit | 133472ac668033c8d8153709c7b7ddaa235aa453 (patch) | |
tree | 18cdd6930fe2e2182551cb8deea83b0f0d02bef4 /source3/include | |
parent | 386267447b9043eafb8497c0f1fca0f7eead821b (diff) | |
download | samba-133472ac668033c8d8153709c7b7ddaa235aa453.tar.gz samba-133472ac668033c8d8153709c7b7ddaa235aa453.tar.bz2 samba-133472ac668033c8d8153709c7b7ddaa235aa453.zip |
r23600: First step in abstracting the winbindd cache validation
code into a generic tdb validation code.
In lib/util_tdb.c for a start.
Michael
(This used to be commit 527edfa0cbcb233218ebabc395666d1d7228ee37)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/util_tdb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/util_tdb.h b/source3/include/util_tdb.h index 803d18c5eb..5fd05f59fc 100644 --- a/source3/include/util_tdb.h +++ b/source3/include/util_tdb.h @@ -41,6 +41,16 @@ struct tdb_wrap { struct tdb_wrap *next, *prev; }; +struct tdb_validation_status { + BOOL tdb_error; + BOOL bad_freelist; + BOOL bad_entry; + BOOL unknown_key; + BOOL success; +}; + +typedef int (*tdb_validate_data_func)(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state); + TDB_LIST_NODE *tdb_search_keys(struct tdb_context*, const char*); void tdb_search_list_free(TDB_LIST_NODE*); int32 tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int32 *oldval, int32 change_val); |