summaryrefslogtreecommitdiff
path: root/server/service_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/service_proto.h')
-rw-r--r--server/service_proto.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/server/service_proto.h b/server/service_proto.h
new file mode 100644
index 00000000..a42a32dc
--- /dev/null
+++ b/server/service_proto.h
@@ -0,0 +1,23 @@
+#ifndef __SSSD_SERVICE_PROTO_H__
+#define __SSSD_SERVICE_PROTO_H__
+
+/* The following definitions come from service.c */
+
+NTSTATUS register_server_service(const char *name,
+ void (*task_init)(struct task_server *));
+NTSTATUS server_service_startup(struct event_context *event_ctx,
+ struct loadparm_context *lp_ctx,
+ const char *model, const char **server_services);
+
+/* The following definitions come from service_task.c */
+
+void task_server_terminate(struct task_server *task, const char *reason);
+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 *));
+void task_server_set_title(struct task_server *task, const char *title);
+
+#endif /* __SSSD_SERVICE_PROTO_H__ */
+