summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-19 22:58:34 +0100
committerVolker Lendecke <vl@samba.org>2008-12-19 23:16:25 +0100
commit9f31468bd37aba42ab1fa39a90174bd2d14214b5 (patch)
tree50b7a3fd4e0e9ce5b96e9f5f6f408ce3925cf54b /source3/include/proto.h
parent6eda98dd13ebf7083da3075252ac11e4d3298b76 (diff)
downloadsamba-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.h19
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 */