smbXcli: rework smb1cli_req_recv() to expose an iov with 3 elements
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Nov 2011 10:37:05 +0000 (11:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Nov 2011 18:02:30 +0000 (19:02 +0100)
commit0f194e35a65cb8a2ae8e2d0d39bc49462a6c8f93
tree201cb36bdac2109403bbdc80e49cbfbbb53e13cc
parentce224f4d25c70190ad127b8fdf01ebb0d6070b6c
smbXcli: rework smb1cli_req_recv() to expose an iov with 3 elements

Each smb1cli_req has 3 iov elements
[SMB HDR, SMB Parameter Block, SMB Data Block].

The 'inbuf' is still exposed if the caller requires it
(until we fix all legacy callers).

The can now pass an array of expected [status,wct] combinations,
instead of just one expected min_wct.

metze
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h