summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2019-03-16 12:11:04 +0000
committerJeremy Allison <jra@samba.org>2019-04-19 17:27:12 +0000
commite1a96b1a5cf4e793cf321b3c777deb4e3e821f99 (patch)
tree0e3db236fa84762f3f5a8a4fd15251739749ec77 /source4
parentaa28477bbec4dd29826b33fce35429724d48acd3 (diff)
downloadsamba-e1a96b1a5cf4e793cf321b3c777deb4e3e821f99.tar.gz
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 <sprabhu@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/lease_break_handler.c8
-rw-r--r--source4/torture/smb2/lease_break_handler.h13
2 files changed, 11 insertions, 10 deletions
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;
+}