summaryrefslogtreecommitdiff
path: root/libcli/smb/smbXcli_base.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-08-29 10:28:14 +0000
committerStefan Metzmacher <metze@samba.org>2020-12-17 13:59:38 +0000
commit560e4b1b32f56ed4cfffc60efd9199ed435409ba (patch)
treee4891b9a2ba67112ddd79e31766c665ce9381fb0 /libcli/smb/smbXcli_base.c
parent76121ae7cf4967329b9745137999fde00309c987 (diff)
downloadsamba-560e4b1b32f56ed4cfffc60efd9199ed435409ba.tar.gz
libcli/smb: add smbXcli_conn_send_queue()
This is useful in order to test async requests tevent_queue_wait_send/recv() can be used to block the queue between requests or wait for the queue to be flushed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/smb/smbXcli_base.c')
-rw-r--r--libcli/smb/smbXcli_base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index df80be6bf16..0fc4aa4451a 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -2743,6 +2743,11 @@ NTSTATUS smb1cli_req_chain_submit(struct tevent_req **reqs, int num_reqs)
return NT_STATUS_OK;
}
+struct tevent_queue *smbXcli_conn_send_queue(struct smbXcli_conn *conn)
+{
+ return conn->outgoing;
+}
+
bool smbXcli_conn_has_async_calls(struct smbXcli_conn *conn)
{
return ((tevent_queue_length(conn->outgoing) != 0)