From 54d2dce7b15579cc4daaad07a9e0344ef4fc17f7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 3 Sep 2010 19:57:02 +0200 Subject: [PATCH] librpc/rpc: add dcerpc_binding_handle_set_timeout() metze --- librpc/rpc/binding_handle.c | 6 ++++++ source3/librpc/rpc/dcerpc.h | 3 +++ source4/librpc/rpc/dcerpc.h | 3 +++ 3 files changed, 12 insertions(+) diff --git a/librpc/rpc/binding_handle.c b/librpc/rpc/binding_handle.c index 75b2dedcb5c..93c0fd4f00e 100644 --- a/librpc/rpc/binding_handle.c +++ b/librpc/rpc/binding_handle.c @@ -91,6 +91,12 @@ bool dcerpc_binding_handle_is_connected(struct dcerpc_binding_handle *h) return h->ops->is_connected(h); } +uint32_t dcerpc_binding_handle_set_timeout(struct dcerpc_binding_handle *h, + uint32_t timeout) +{ + return h->ops->set_timeout(h, timeout); +} + struct dcerpc_binding_handle_raw_call_state { const struct dcerpc_binding_handle_ops *ops; uint8_t *out_data; diff --git a/source3/librpc/rpc/dcerpc.h b/source3/librpc/rpc/dcerpc.h index 77395ebf74a..af20889b1e0 100644 --- a/source3/librpc/rpc/dcerpc.h +++ b/source3/librpc/rpc/dcerpc.h @@ -259,6 +259,9 @@ _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle bool dcerpc_binding_handle_is_connected(struct dcerpc_binding_handle *h); +uint32_t dcerpc_binding_handle_set_timeout(struct dcerpc_binding_handle *h, + uint32_t timeout); + struct tevent_req *dcerpc_binding_handle_raw_call_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct dcerpc_binding_handle *h, diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h index 5adbc57a9c9..b77628d8d7c 100644 --- a/source4/librpc/rpc/dcerpc.h +++ b/source4/librpc/rpc/dcerpc.h @@ -477,6 +477,9 @@ _DEPRECATED_ void dcerpc_binding_handle_set_sync_ev(struct dcerpc_binding_handle bool dcerpc_binding_handle_is_connected(struct dcerpc_binding_handle *h); +uint32_t dcerpc_binding_handle_set_timeout(struct dcerpc_binding_handle *h, + uint32_t timeout); + struct tevent_req *dcerpc_binding_handle_raw_call_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct dcerpc_binding_handle *h, -- 2.11.4.GIT