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/libsmb | |
parent | 38206f16bd9008dc9bc6e180686fa1eac954f8b4 (diff) | |
download | samba-dafeef47b4a325b877a22ed9939697399577b155.tar.gz |
s3:libsmb: add cli_state_max_requests()
metze
Diffstat (limited to 'source3/libsmb')
-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 7473bfa7f81..b438fd83979 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 c618fda2b1a..82b981e62cb 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); |