summaryrefslogtreecommitdiff
path: root/server/service_proto.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-03 13:01:57 -0400
committerSimo Sorce <idra@samba.org>2008-10-04 11:14:49 -0400
commit4458162a943a432b5f8517182e2ee7aab2590f85 (patch)
tree7b29a7ed33632565e216509f6f010be2dbbbb19c /server/service_proto.h
parent9bd63b97c9c3132a0b3c8c6bd1c67f8c31a54c3c (diff)
downloadsssd-4458162a943a432b5f8517182e2ee7aab2590f85.tar.gz
sssd-4458162a943a432b5f8517182e2ee7aab2590f85.tar.bz2
sssd-4458162a943a432b5f8517182e2ee7aab2590f85.zip
Initital server code.
Includes test monitor task.
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__ */
+