diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 15:07:44 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:17 +0200 |
commit | f6eb187fdab6b8088bb065e418fe604c4eba7751 (patch) | |
tree | 7c9e0dac178585a87b412e5446a7e2069dd8275b /lib/dbwrap/dbwrap.h | |
parent | 431667b47c0eac3069ba1e643996619ab61975e5 (diff) | |
download | samba-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.h')
-rw-r--r-- | lib/dbwrap/dbwrap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 23a43da019..0b19396b98 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -43,6 +43,11 @@ struct db_record *dbwrap_fetch_locked(struct db_context *db, struct db_record *dbwrap_try_fetch_locked(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); +struct db_record *dbwrap_fetch_locked_timeout(struct db_context *db, + TALLOC_CTX *mem_ctx, + TDB_DATA key, + unsigned int timeout); + struct db_context *dbwrap_record_get_db(struct db_record *rec); void dbwrap_set_stored_callback( struct db_context *db, |