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>
return;
}
-
- void torture_reset_lease_break_info(struct torture_context *tctx,
- struct lease_break_info *r)
-{
- ZERO_STRUCTP(r);
- r->tctx = tctx;
-}
-
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;
+}