torture:smb2:replay: extend CHECK_CREATE_OUT() to know leases
[samba.git] / source4 / smbd / process_model.h
index 1d3e32eb341688e70ac38818c9782b927f1436aa..4399d3689fbe16ec9edb58027ce7b3ce72789ab9 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "lib/socket/socket.h"
 #include "smbd/service.h"
+#include "smbd/process_model_proto.h"
 
 /* modules can use the following to determine if the interface has changed
  * please increment the version number after each interface change
@@ -41,7 +42,7 @@ struct model_ops {
        const char *name;
 
        /* called at startup when the model is selected */
-       void (*model_init)(struct tevent_context *);
+       void (*model_init)(void);
 
        /* function to accept new connection */
        void (*accept_connection)(struct tevent_context *, 
@@ -78,8 +79,8 @@ struct process_model_critical_sizes {
 
 extern const struct model_ops single_ops;
 
-const struct model_ops *process_model_startup(struct tevent_context *ev, const char *model);
-NTSTATUS register_process_model(const void *_ops);
+const struct model_ops *process_model_startup(const char *model);
+NTSTATUS register_process_model(const struct model_ops *ops);
 NTSTATUS process_model_init(struct loadparm_context *lp_ctx);
 
 #endif /* __PROCESS_MODEL_H__ */