summaryrefslogtreecommitdiff
path: root/lib/dbwrap/dbwrap_private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-22 15:07:44 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-22 07:35:17 +0200
commitf6eb187fdab6b8088bb065e418fe604c4eba7751 (patch)
tree7c9e0dac178585a87b412e5446a7e2069dd8275b /lib/dbwrap/dbwrap_private.h
parent431667b47c0eac3069ba1e643996619ab61975e5 (diff)
downloadsamba-f6eb187fdab6b8088bb065e418fe604c4eba7751.tar.gz
samba-f6eb187fdab6b8088bb065e418fe604c4eba7751.tar.bz2
samba-f6eb187fdab6b8088bb065e418fe604c4eba7751.zip
dbwrap: dbwrap_fetch_locked_timeout().
Implemented for ntdb and tdb; falls back to the non-timeout variant for others. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/dbwrap/dbwrap_private.h')
-rw-r--r--lib/dbwrap/dbwrap_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap_private.h b/lib/dbwrap/dbwrap_private.h
index af8374dbc9..dfd365dab2 100644
--- a/lib/dbwrap/dbwrap_private.h
+++ b/lib/dbwrap/dbwrap_private.h
@@ -38,6 +38,10 @@ struct db_context {
struct db_record *(*try_fetch_locked)(struct db_context *db,
TALLOC_CTX *mem_ctx,
TDB_DATA key);
+ struct db_record *(*fetch_locked_timeout)(struct db_context *db,
+ TALLOC_CTX *mem_ctx,
+ TDB_DATA key,
+ unsigned int timeout);
int (*traverse)(struct db_context *db,
int (*f)(struct db_record *rec,
void *private_data),