librpc:core: Add public functions to initialize endpoint servers
authorSamuel Cabrero <scabrero@samba.org>
Fri, 6 Sep 2019 12:38:29 +0000 (14:38 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Dec 2019 00:35:30 +0000 (00:35 +0000)
commit90eb485cf9d8eaecfab31044e52e8f41b3a51452
tree8d4028d8195cf4bcbaecc7f5aebfb73729b66c81
parent39dfc5c82b2345f2eee7d14f6f2cc3ee8b2aef3d
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>
librpc/rpc/dcesrv_core.c
librpc/rpc/dcesrv_core.h
pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
source4/rpc_server/remote/dcesrv_remote.c
source4/torture/rpc/spoolss_notify.c