summaryrefslogtreecommitdiff
path: root/source4/torture/torture.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-17 16:27:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:36 -0500
commit52b410401a527cbc9294f10c01ee53d766bb5ac7 (patch)
tree3d47ef016f67c0f24637712876e35c8326c55220 /source4/torture/torture.h
parentdf891410f157263d6b3d884cf39aca596ba94cf6 (diff)
downloadsamba-52b410401a527cbc9294f10c01ee53d766bb5ac7.tar.gz
samba-52b410401a527cbc9294f10c01ee53d766bb5ac7.tar.bz2
samba-52b410401a527cbc9294f10c01ee53d766bb5ac7.zip
r14520: Split up smbtorture binary into a core (torture.c) and UI frontend (smbtorture.c)
(This used to be commit 7f9c11e7b1d7f6ce943900860febe0f43ea6548e)
Diffstat (limited to 'source4/torture/torture.h')
-rw-r--r--source4/torture/torture.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/torture/torture.h b/source4/torture/torture.h
index e509ac7028..6218700ac6 100644
--- a/source4/torture/torture.h
+++ b/source4/torture/torture.h
@@ -22,6 +22,20 @@
#ifndef __TORTURE_H__
#define __TORTURE_H__
+struct torture_op {
+ const char *name;
+ BOOL (*fn)(void);
+ BOOL (*multi_fn)(struct smbcli_state *, int );
+ struct torture_op *prev, *next;
+};
+
+extern struct torture_op * torture_ops;
+
+extern BOOL use_oplocks;
+extern BOOL torture_showall;
+extern int torture_entries;
+extern int torture_nprocs;
+extern int torture_seed;
extern int torture_numops;
extern int torture_failures;