s3-epmap: Make rpc_ep_setup_register an internal function.
authorAndreas Schneider <asn@samba.org>
Mon, 28 Mar 2011 12:18:00 +0000 (14:18 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 29 Mar 2011 14:03:52 +0000 (16:03 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/rpc_server/rpc_ep_setup.c
source3/rpc_server/rpc_ep_setup.h

index 9bed63d8239b4de4fb06db5e6005f3f85fd9f20b..a0c54c7e99a60a8acb098d9a9249e9e7d2226a59 100644 (file)
@@ -149,11 +149,11 @@ struct rpc_ep_regsiter_state {
        uint32_t wait_time;
 };
 
-static NTSTATUS rpc_ep_setup_register(struct tevent_context *ev_ctx,
-                                     struct messaging_context *msg_ctx,
-                                     const struct ndr_interface_table *iface,
-                                     const char *ncalrpc,
-                                     uint16_t port)
+NTSTATUS rpc_ep_setup_register(struct tevent_context *ev_ctx,
+                              struct messaging_context *msg_ctx,
+                              const struct ndr_interface_table *iface,
+                              const char *ncalrpc,
+                              uint16_t port)
 {
        struct rpc_ep_regsiter_state *state;
        struct tevent_req *req;
index 272910a41955535e69f9f1a99bb3a148bd80d6bf..b96de36b16e365db12d93a9996c56edcf1996544 100644 (file)
 #ifndef _SMBD_RPC_CALLBACKS_H
 #define _SMBD_RPC_CALLBACKS_H
 
+/**
+ * @brief Register an endpoint at the endpoint mapper.
+ *
+ * This just sets up a register and monitor loop to try to regsiter the
+ * endpoint at the endpoint mapper.
+ *
+ * @param[in] ev_ctx    The event context to setup the loop.
+ *
+ * @param[in] msg_ctx   The messaging context to use for the connnection.
+ *
+ * @param[in] iface     The interface table to register.
+ *
+ * @param[in] ncalrpc   The name of the ncalrpc pipe or NULL.
+ *
+ * @param[in] port      The tcpip port or 0.
+ *
+ * @return              NT_STATUS_OK on success or a corresponding error code.
+ */
+NTSTATUS rpc_ep_setup_register(struct tevent_context *ev_ctx,
+                              struct messaging_context *msg_ctx,
+                              const struct ndr_interface_table *iface,
+                              const char *ncalrpc,
+                              uint16_t port);
+
 bool dcesrv_ep_setup(struct tevent_context *ev_ctx,
                     struct messaging_context *msg_ctx);