diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-15 11:47:11 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:29 +0100 |
commit | 21b5f1c18573d8447d6e3fbda3018b72f65a4494 (patch) | |
tree | dab3ba3ba9bcc00d9e4b2e076983a18fbe307fe2 /libcli/smb/smbXcli_base.h | |
parent | 26892a9783756a13c2d86b642bb83768dbcca926 (diff) | |
download | samba-21b5f1c18573d8447d6e3fbda3018b72f65a4494.tar.gz samba-21b5f1c18573d8447d6e3fbda3018b72f65a4494.tar.bz2 samba-21b5f1c18573d8447d6e3fbda3018b72f65a4494.zip |
libcli/smb: copy smb2cli_req_* code to smbXcli_base.c
metze
Diffstat (limited to 'libcli/smb/smbXcli_base.h')
-rw-r--r-- | libcli/smb/smbXcli_base.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.h b/libcli/smb/smbXcli_base.h index 3f39be8c2d..6054a1a3ae 100644 --- a/libcli/smb/smbXcli_base.h +++ b/libcli/smb/smbXcli_base.h @@ -103,4 +103,45 @@ NTSTATUS smb1cli_req_recv(struct tevent_req *req, uint8_t min_wct, uint8_t *pwct, uint16_t **pvwv, uint32_t *pnum_bytes, uint8_t **pbytes); +struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct cli_state *cli, + uint16_t cmd, + uint32_t additional_flags, + uint32_t clear_flags, + unsigned int timeout, + uint32_t pid, + uint32_t tid, + uint64_t uid, + const uint8_t *fixed, + uint16_t fixed_len, + const uint8_t *dyn, + uint32_t dyn_len); +NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, + int num_reqs); + +struct smb2cli_req_expected_response { + NTSTATUS status; + uint16_t body_size; +}; + +struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct cli_state *cli, + uint16_t cmd, + uint32_t additional_flags, + uint32_t clear_flags, + unsigned int timeout, + uint32_t pid, + uint32_t tid, + uint64_t uid, + const uint8_t *fixed, + uint16_t fixed_len, + const uint8_t *dyn, + uint32_t dyn_len); +NTSTATUS smb2cli_req_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, + struct iovec **piov, + const struct smb2cli_req_expected_response *expected, + size_t num_expected); + #endif /* _SMBXCLI_BASE_H_ */ |