From: Stefan Metzmacher Date: Tue, 17 Sep 2024 18:56:07 +0000 (+0200) Subject: librpc/rpc: add dcerpc_binding_handle_get_binding() X-Git-Tag: samba-4.21.7~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e94025e1a8edfbb1d9ac211de2437ac8537c5c7b;p=thirdparty%2Fsamba.git librpc/rpc: add dcerpc_binding_handle_get_binding() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit a038e7d8cf7a93ecf9a3e0c906f0d0db81ecee54) --- diff --git a/librpc/rpc/binding_handle.c b/librpc/rpc/binding_handle.c index f8c7add27ea..329184b2b8b 100644 --- a/librpc/rpc/binding_handle.c +++ b/librpc/rpc/binding_handle.c @@ -87,6 +87,11 @@ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h, h->sync_ev = ev; } +const struct dcerpc_binding *dcerpc_binding_handle_get_binding(struct dcerpc_binding_handle *h) +{ + return h->ops->get_binding(h); +} + bool dcerpc_binding_handle_is_connected(struct dcerpc_binding_handle *h) { return h->ops->is_connected(h); diff --git a/librpc/rpc/rpc_common.h b/librpc/rpc/rpc_common.h index 33892a68597..c72ff062df8 100644 --- a/librpc/rpc/rpc_common.h +++ b/librpc/rpc/rpc_common.h @@ -255,6 +255,8 @@ void *_dcerpc_binding_handle_data(struct dcerpc_binding_handle *h); _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle *h, struct tevent_context *ev); +const struct dcerpc_binding *dcerpc_binding_handle_get_binding(struct dcerpc_binding_handle *h); + bool dcerpc_binding_handle_is_connected(struct dcerpc_binding_handle *h); uint32_t dcerpc_binding_handle_set_timeout(struct dcerpc_binding_handle *h,