summaryrefslogtreecommitdiff
path: root/ctdb/libctdb/test/expect.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/libctdb/test/expect.h')
-rw-r--r--ctdb/libctdb/test/expect.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/ctdb/libctdb/test/expect.h b/ctdb/libctdb/test/expect.h
new file mode 100644
index 00000000000..d42ebdcc9cb
--- /dev/null
+++ b/ctdb/libctdb/test/expect.h
@@ -0,0 +1,35 @@
+/*
+
+This file is taken from nfsim (http://ozlabs.org/~jk/projects/nfsim/)
+
+Copyright (c) 2003,2004 Jeremy Kerr & Rusty Russell
+
+This file is part of nfsim.
+
+nfsim is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+nfsim is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with nfsim; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __HAVE_EXPECT_H
+#define __HAVE_EXPECT_H
+
+/* Expect interface */
+void expect_before_command(const char *command);
+bool expect_log_hook(const char *line);
+void expect_after_command(void);
+
+/* Are there any expect commands unresolved? */
+bool expects_remaining(void);
+
+#endif /* __HAVE_EXPECT_H */