]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc/rpc: add dcerpc_binding_handle_get_binding()
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Sep 2024 18:56:07 +0000 (20:56 +0200)
committerJule Anger <janger@samba.org>
Thu, 12 Jun 2025 11:27:15 +0000 (11:27 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit a038e7d8cf7a93ecf9a3e0c906f0d0db81ecee54)

librpc/rpc/binding_handle.c
librpc/rpc/rpc_common.h

index f8c7add27eaa5226e52d4b66e98271f257ee5732..329184b2b8b9716862ea4ae7b88c0a1b5b16f351 100644 (file)
@@ -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);
index 33892a6859718bc0289e48891dcc4e9a00b256c9..c72ff062df8cffb775dfca58288156c49452eb97 100644 (file)
@@ -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,