Fix bug 9678 - Windows 8 Roaming profiles fail
[Samba.git] / source3 / rpc_server / rpc_ep_register.h
blob54ef58f76b702c1bd78172c2a60904987b3ee72a
1 /*
2 * Unix SMB/CIFS implementation.
4 * RPC Endpoint Registration
6 * Copyright (c) 2011 Andreas Schneider <asn@samba.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #ifndef _RPC_EP_REGISTER_H
23 #define _RPC_EP_REGISTER_H
25 struct dcerpc_binding_vector;
27 /**
28 * @brief Register an endpoint at the endpoint mapper.
30 * This just sets up a register and monitor loop to try to regsiter the
31 * endpoint at the endpoint mapper.
33 * @param[in] ev_ctx The event context to setup the loop.
35 * @param[in] msg_ctx The messaging context to use for the connnection.
37 * @param[in] iface The interface table to register.
39 * @param[in] v The binding vector to register.
41 * @return NT_STATUS_OK on success or a corresponding error code.
43 NTSTATUS rpc_ep_register(struct tevent_context *ev_ctx,
44 struct messaging_context *msg_ctx,
45 const struct ndr_interface_table *iface,
46 const struct dcerpc_binding_vector *v);
48 #endif /* _RPC_EP_REGISTER_H */
50 /* vim: set ts=8 sw=8 noet cindent ft=c.doxygen: */