Rework service init functions to pass down service name. This is
[ira/wip.git] / source / smbd / service_task.c
index 08588464cc8343398fbef4fbf349c411e390131b..22746850590af7125de16f5506274551d0000246 100644 (file)
@@ -85,6 +85,7 @@ static void task_server_callback(struct event_context *event_ctx,
 */
 NTSTATUS task_server_startup(struct event_context *event_ctx, 
                             struct loadparm_context *lp_ctx,
+                            const char *service_name, 
                             const struct model_ops *model_ops, 
                             void (*task_init)(struct task_server *))
 {
@@ -96,7 +97,7 @@ NTSTATUS task_server_startup(struct event_context *event_ctx,
        state->task_init = task_init;
        state->model_ops = model_ops;
        
-       model_ops->new_task(event_ctx, lp_ctx, task_server_callback, state);
+       model_ops->new_task(event_ctx, lp_ctx, service_name, task_server_callback, state);
 
        return NT_STATUS_OK;
 }