From: Sachin Prabhu Date: Sat, 16 Mar 2019 12:11:04 +0000 (+0000) Subject: s4-torture: Add function declarations to lease_break_handler.h X-Git-Tag: tdb-1.4.1~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1a96b1a5cf4e793cf321b3c777deb4e3e821f99;p=thirdparty%2Fsamba.git s4-torture: Add function declarations to lease_break_handler.h Do not completely depend on proto.h. Also move torture_reset_break_info() to lease_break_handler.h so that the layout is similar to that of oplock_break_handler.* Signed-off-by: Sachin Prabhu Reviewed-by: Guenther Deschner Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/smb2/lease_break_handler.c b/source4/torture/smb2/lease_break_handler.c index b70234420bd..5f8e325d63f 100644 --- a/source4/torture/smb2/lease_break_handler.c +++ b/source4/torture/smb2/lease_break_handler.c @@ -124,11 +124,3 @@ done: return; } - - void torture_reset_lease_break_info(struct torture_context *tctx, - struct lease_break_info *r) -{ - ZERO_STRUCTP(r); - r->tctx = tctx; -} - diff --git a/source4/torture/smb2/lease_break_handler.h b/source4/torture/smb2/lease_break_handler.h index dc8841bb8a1..1e915e27951 100644 --- a/source4/torture/smb2/lease_break_handler.h +++ b/source4/torture/smb2/lease_break_handler.h @@ -118,5 +118,14 @@ struct lease_break_info { extern struct lease_break_info lease_break_info; -void torture_reset_lease_break_info(struct torture_context *tctx, - struct lease_break_info *r); +bool torture_lease_handler(struct smb2_transport *transport, + const struct smb2_lease_break *lb, + void *private_data); +void torture_wait_for_lease_break(struct torture_context *tctx); + +static inline void torture_reset_lease_break_info(struct torture_context *tctx, + struct lease_break_info *r) +{ + ZERO_STRUCTP(r); + r->tctx = tctx; +}