mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
pidl: Use a static const initialised struct in dcerpc_server_$name_init(void)
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
bf7342bdf4
commit
778fc58eb2
@ -257,17 +257,16 @@ static bool $name\__op_interface_by_name(struct dcesrv_interface *iface, const c
|
||||
NTSTATUS dcerpc_server_$name\_init(void)
|
||||
{
|
||||
NTSTATUS ret;
|
||||
struct dcesrv_endpoint_server ep_server;
|
||||
static const struct dcesrv_endpoint_server ep_server = {
|
||||
/* fill in our name */
|
||||
.name = \"$name\",
|
||||
|
||||
/* fill in our name */
|
||||
ep_server.name = \"$name\";
|
||||
|
||||
/* fill in all the operations */
|
||||
ep_server.init_server = $name\__op_init_server;
|
||||
|
||||
ep_server.interface_by_uuid = $name\__op_interface_by_uuid;
|
||||
ep_server.interface_by_name = $name\__op_interface_by_name;
|
||||
/* fill in all the operations */
|
||||
.init_server = $name\__op_init_server,
|
||||
|
||||
.interface_by_uuid = $name\__op_interface_by_uuid,
|
||||
.interface_by_name = $name\__op_interface_by_name
|
||||
};
|
||||
/* register ourselves with the DCERPC subsystem. */
|
||||
ret = dcerpc_register_ep_server(&ep_server);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user