diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-13 16:24:35 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-13 18:12:23 +0200 |
commit | dafeef47b4a325b877a22ed9939697399577b155 (patch) | |
tree | 38abc8c5119da7be27e8a406c5f33208fc537157 /source3 | |
parent | 38206f16bd9008dc9bc6e180686fa1eac954f8b4 (diff) | |
download | samba-dafeef47b4a325b877a22ed9939697399577b155.tar.gz samba-dafeef47b4a325b877a22ed9939697399577b155.tar.bz2 samba-dafeef47b4a325b877a22ed9939697399577b155.zip |
s3:libsmb: add cli_state_max_requests()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 7473bfa7f8..b438fd8397 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -514,6 +514,11 @@ uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs) return ret; } +uint16_t cli_state_max_requests(struct cli_state *cli) +{ + return cli->max_mux; +} + struct cli_echo_state { uint16_t vwv[1]; DATA_BLOB data; diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index c618fda2b1..82b981e62c 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -181,6 +181,7 @@ bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive); enum protocol_types cli_state_protocol(struct cli_state *cli); uint32_t cli_state_capabilities(struct cli_state *cli); uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs); +uint16_t cli_state_max_requests(struct cli_state *cli); struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, uint16_t num_echos, DATA_BLOB data); |