diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-09 10:17:06 +0100 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-03-23 17:19:22 +0100 |
commit | 81a2046879299a051e69fd4d78b3a8e49b690f1b (patch) | |
tree | 92d377f22c785a3fab3481b648dd4ad51a16192a /source3/librpc/rpc/dcerpc_ep.h | |
parent | d6a1469f4350fa24204e11bb9aee0e33f8d21c34 (diff) | |
download | samba-81a2046879299a051e69fd4d78b3a8e49b690f1b.tar.gz samba-81a2046879299a051e69fd4d78b3a8e49b690f1b.tar.bz2 samba-81a2046879299a051e69fd4d78b3a8e49b690f1b.zip |
s3-librpc: Leave the epm registration connection open.
Diffstat (limited to 'source3/librpc/rpc/dcerpc_ep.h')
-rw-r--r-- | source3/librpc/rpc/dcerpc_ep.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.h b/source3/librpc/rpc/dcerpc_ep.h index 99682beb9a..57b1d27440 100644 --- a/source3/librpc/rpc/dcerpc_ep.h +++ b/source3/librpc/rpc/dcerpc_ep.h @@ -34,6 +34,8 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, /** * @brief Adds server address information in the local endpoint map. * + * @param[in] mem_ctx The memory context to use for the binding handle. + * * @param[in] iface The interface specification to register with the local * endpoint map. * @@ -55,17 +57,25 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, * supplied, including an empty annotation string, * replaces any existing annotation string. * + * @param[out] ph A pointer to store the binding handle. The memory + * context will be the give one. If you free this handle + * then the connection will be closed. + * * @return An NTSTATUS error code. */ -NTSTATUS dcerpc_ep_register(const struct ndr_interface_table *iface, +NTSTATUS dcerpc_ep_register(TALLOC_CTX *mem_ctx, + const struct ndr_interface_table *iface, const struct dcerpc_binding_vector *bind_vec, const struct GUID *object_guid, - const char *annotation); + const char *annotation, + struct dcerpc_binding_handle **ph); -NTSTATUS dcerpc_ep_register_noreplace(const struct ndr_interface_table *iface, +NTSTATUS dcerpc_ep_register_noreplace(TALLOC_CTX *mem_ctx, + const struct ndr_interface_table *iface, const struct dcerpc_binding_vector *bind_vec, const struct GUID *object_guid, - const char *annotation); + const char *annotation, + struct dcerpc_binding_handle **ph); NTSTATUS dcerpc_ep_unregister(const struct ndr_interface_table *iface, const struct dcerpc_binding_vector *bind_vec, |