summaryrefslogtreecommitdiff
path: root/source4/libcli/composite/composite.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-12 11:43:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:46 -0500
commit287515fd3db1932f06d56da3bb388a7efc1120eb (patch)
treeaa22ff31a537d30af6bc1086b014207993275883 /source4/libcli/composite/composite.h
parent09c34de35a472acfe92ef489409646086a564326 (diff)
downloadsamba-287515fd3db1932f06d56da3bb388a7efc1120eb.tar.gz
samba-287515fd3db1932f06d56da3bb388a7efc1120eb.tar.bz2
samba-287515fd3db1932f06d56da3bb388a7efc1120eb.zip
r4710: added a smb_composite_savefile() function, and expanded the test suite a little
(This used to be commit ef4dbc443dbdebc4160209ed3f23cbb97109c414)
Diffstat (limited to 'source4/libcli/composite/composite.h')
-rw-r--r--source4/libcli/composite/composite.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/libcli/composite/composite.h b/source4/libcli/composite/composite.h
index 895c88a4f6..7b9477a942 100644
--- a/source4/libcli/composite/composite.h
+++ b/source4/libcli/composite/composite.h
@@ -45,6 +45,9 @@ struct smbcli_composite {
/* the parameters of the whole composite function */
void *composite_parms;
+ /* a private pointer for use by the composite code */
+ void *private;
+
/* status code when finished */
NTSTATUS status;
@@ -53,7 +56,6 @@ struct smbcli_composite {
void (*fn)(struct smbcli_composite *);
void *private;
} async;
-
};
@@ -70,3 +72,15 @@ struct smb_composite_loadfile {
uint32_t size;
} out;
};
+
+/*
+ a composite open/write(s)/close request that saves a whole file from
+ memory. Used as a demo of the composite system.
+*/
+struct smb_composite_savefile {
+ struct {
+ const char *fname;
+ uint8_t *data;
+ uint32_t size;
+ } in;
+};