diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-19 22:58:34 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-19 23:16:25 +0100 |
commit | 9f31468bd37aba42ab1fa39a90174bd2d14214b5 (patch) | |
tree | 50b7a3fd4e0e9ce5b96e9f5f6f408ce3925cf54b /source3/include/proto.h | |
parent | 6eda98dd13ebf7083da3075252ac11e4d3298b76 (diff) | |
download | samba-9f31468bd37aba42ab1fa39a90174bd2d14214b5.tar.gz samba-9f31468bd37aba42ab1fa39a90174bd2d14214b5.tar.bz2 samba-9f31468bd37aba42ab1fa39a90174bd2d14214b5.zip |
Add async cli_write_andx and cli_pull
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 25161fef97..cffb8f7325 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2800,6 +2800,25 @@ ssize_t cli_write(struct cli_state *cli, const char *buf, off_t offset, size_t size); ssize_t cli_smbwrite(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size1); +struct async_req *cli_write_andx_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, uint16_t fnum, + uint16_t mode, const uint8_t *buf, + off_t offset, size_t size); +NTSTATUS cli_write_andx_recv(struct async_req *req, size_t *pwritten); + +struct async_req *cli_push_send(TALLOC_CTX *mem_ctx, struct event_context *ev, + struct cli_state *cli, + uint16_t fnum, uint16_t mode, + off_t start_offset, size_t window_size, + size_t (*source)(uint8_t *buf, size_t n, + void *priv), + void *priv); +NTSTATUS cli_push_recv(struct async_req *req); +NTSTATUS cli_push(struct cli_state *cli, uint16_t fnum, uint16_t mode, + off_t start_offset, size_t window_size, + size_t (*source)(uint8_t *buf, size_t n, void *priv), + void *priv); /* The following definitions come from libsmb/clisecdesc.c */ |