summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@samba.org>2019-09-06 14:38:29 +0200
committerAndrew Bartlett <abartlet@samba.org>2019-12-12 00:35:30 +0000
commit90eb485cf9d8eaecfab31044e52e8f41b3a51452 (patch)
tree8d4028d8195cf4bcbaecc7f5aebfb73729b66c81 /source4
parent39dfc5c82b2345f2eee7d14f6f2cc3ee8b2aef3d (diff)
downloadsamba-90eb485cf9d8eaecfab31044e52e8f41b3a51452.tar.gz
librpc:core: Add public functions to initialize endpoint servers
The dcesrv_init_registered_ep_servers() will be used by the S3 server to initialize all registered endpoint servers (for embedded services), and the dcesrv_init_ep_server() function will be used by the external daemons to initialize the required ones. As serveral S3 services may require to initialize another one before itself (svcctl and eventlog for example require winreg) a boolean flag is added to track the initialization status. Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/remote/dcesrv_remote.c2
-rw-r--r--source4/torture/rpc/spoolss_notify.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/remote/dcesrv_remote.c b/source4/rpc_server/remote/dcesrv_remote.c
index 8de9190e03e..e6e231f1e23 100644
--- a/source4/rpc_server/remote/dcesrv_remote.c
+++ b/source4/rpc_server/remote/dcesrv_remote.c
@@ -496,6 +496,8 @@ NTSTATUS dcerpc_server_remote_init(TALLOC_CTX *ctx)
/* fill in our name */
.name = "remote",
+ .initialized = false,
+
/* fill in all the operations */
.init_server = remote_op_init_server,
diff --git a/source4/torture/rpc/spoolss_notify.c b/source4/torture/rpc/spoolss_notify.c
index 9b183ac49ae..8d4a15f1569 100644
--- a/source4/torture/rpc/spoolss_notify.c
+++ b/source4/torture/rpc/spoolss_notify.c
@@ -458,6 +458,8 @@ static bool test_start_dcerpc_server(struct torture_context *tctx,
/* fill in our name */
ep_server.name = "spoolss";
+ ep_server.initialized = false;
+
/* fill in all the operations */
ep_server.init_server = spoolss__op_init_server;