summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-31 08:30:44 +0000
committerAndrew Tridgell <tridge@samba.org>2005-01-31 08:30:44 +0000
commit7676132d363c06f63e6d842706286f5fb33f0d5b (patch)
treea56de58cae4064b63c49cafe1dded769c5f10c58 /source/torture
parent44db5acfc34b1d123eb66460aa39e531173a238d (diff)
downloadsamba-7676132d363c06f63e6d842706286f5fb33f0d5b.tar.gz
samba-7676132d363c06f63e6d842706286f5fb33f0d5b.tar.xz
samba-7676132d363c06f63e6d842706286f5fb33f0d5b.zip
r5126: the composite code is no longer client specific or smb specific, so
rename the core structure to composite_context and the wait routine to composite_wait() (suggestion from metze)
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/raw/composite.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/torture/raw/composite.c b/source/torture/raw/composite.c
index d32c9393c29..98f33bea3e5 100644
--- a/source/torture/raw/composite.c
+++ b/source/torture/raw/composite.c
@@ -26,7 +26,7 @@
#define BASEDIR "\\composite"
-static void loadfile_complete(struct smbcli_composite *c)
+static void loadfile_complete(struct composite_context *c)
{
int *count = talloc_get_type(c->async.private, int);
(*count)++;
@@ -41,7 +41,7 @@ static BOOL test_loadfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
struct smb_composite_savefile io1;
struct smb_composite_loadfile io2;
- struct smbcli_composite **c;
+ struct composite_context **c;
char *data;
size_t len = random() % 100000;
const int num_ops = 50;
@@ -68,7 +68,7 @@ static BOOL test_loadfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
printf("testing parallel loadfile with %d ops\n", num_ops);
- c = talloc_array(mem_ctx, struct smbcli_composite *, num_ops);
+ c = talloc_array(mem_ctx, struct composite_context *, num_ops);
for (i=0;i<num_ops;i++) {
c[i] = smb_composite_loadfile_send(cli->tree, &io2);
@@ -117,7 +117,7 @@ static BOOL test_fetchfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
struct smb_composite_savefile io1;
struct smb_composite_fetchfile io2;
- struct smbcli_composite **c;
+ struct composite_context **c;
char *data;
int i;
size_t len = random() % 10000;
@@ -156,7 +156,7 @@ static BOOL test_fetchfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
printf("testing parallel fetchfile with %d ops\n", torture_numops);
event_ctx = event_context_init(mem_ctx);
- c = talloc_array(mem_ctx, struct smbcli_composite *, torture_numops);
+ c = talloc_array(mem_ctx, struct composite_context *, torture_numops);
for (i=0; i<torture_numops; i++) {
c[i] = smb_composite_fetchfile_send(&io2, event_ctx);