summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-10 12:34:20 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-10 14:07:56 +0100
commit9579a6f193f570e4ce2af80f4aac7c2f25ae5b22 (patch)
treef23951e02beae9168966f7edaeade25ba036031e /source3/include/proto.h
parentc2993f74af4e17790f8afbf16ba1c6884afa4ad4 (diff)
downloadsamba-9579a6f193f570e4ce2af80f4aac7c2f25ae5b22.tar.gz
samba-9579a6f193f570e4ce2af80f4aac7c2f25ae5b22.tar.bz2
samba-9579a6f193f570e4ce2af80f4aac7c2f25ae5b22.zip
s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a1cafb6837..794a006a68 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2790,13 +2790,18 @@ 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,
+ bool caller_buffers,
+ size_t (*source)(uint8_t *inbuf, size_t n,
+ const uint8_t **outbuf,
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),
+ bool caller_buffers,
+ size_t (*source)(uint8_t *inbuf, size_t n,
+ const uint8_t **outbuf,
+ void *priv),
void *priv);
/* The following definitions come from libsmb/clisecdesc.c */