pidl:NDR/Server: Allow to define endpoint server shutdown functions
authorSamuel Cabrero <scabrero@samba.org>
Fri, 6 Sep 2019 13:16:01 +0000 (15:16 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Dec 2019 00:35:31 +0000 (00:35 +0000)
commite24ce0023fa00a33d22f5f475e9280a8cad612c3
tree0a026da32c67e7bac19789231a5f3a00969eec76
parent79af978c815e6ad94797742c8755f4fe8142160e
pidl:NDR/Server: Allow to define endpoint server shutdown functions

The next commits will register legacy api_struct when the endpoint server
is initialized. This commit adds a shutdown function which will be used
to unregister the legacy api_struct.

The shutdown function will be also used to replace the rpc_srv_callbacks
struct shutdown member used, for example, by the spoolss service to
cleanup before exiting.

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