s4:smbd: Use tstream_npa_accept_existing to accept named pipe connections
[amitay/samba.git] / source4 / smbd / process_model.c
index d6346a06f9b3e40f6740a28ec716ed7731769d76..d3f234eb41c921155bafdf33c2f9659ab4f4a842 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "includes.h"
 #include "smbd/process_model.h"
-#include "smbd/process_model_proto.h"
 #include "param/param.h"
 
 static const struct model_ops *process_model_byname(const char *name);
@@ -28,7 +27,7 @@ static const struct model_ops *process_model_byname(const char *name);
 /*
   setup the events for the chosen process model
 */
-_PUBLIC_ const struct model_ops *process_model_startup(struct event_context *ev, const char *model)
+_PUBLIC_ const struct model_ops *process_model_startup(struct tevent_context *ev, const char *model)
 {
        const struct model_ops *ops;
 
@@ -87,6 +86,7 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx)
        extern NTSTATUS process_model_thread_init(void);
        extern NTSTATUS process_model_standard_init(void);
        extern NTSTATUS process_model_prefork_init(void);
+       extern NTSTATUS process_model_onefork_init(void);
        extern NTSTATUS process_model_single_init(void);
        init_module_fn static_init[] = { STATIC_process_model_MODULES };
        init_module_fn *shared_init = load_samba_modules(NULL, lp_ctx, "process_model");