aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-13 18:34:04 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-13 18:34:04 +0100
commit2917e71aadae004f3a353c3de0672d7534e1a2bf (patch)
treede254390ede76ba980bb0a39a4f2abb42a69ee67 /tests/torture.h
parent551b87b65b209255e60fbcaf146c43f2188ddc39 (diff)
downloadlibssh-2917e71aadae004f3a353c3de0672d7534e1a2bf.tar.gz
libssh-2917e71aadae004f3a353c3de0672d7534e1a2bf.tar.xz
libssh-2917e71aadae004f3a353c3de0672d7534e1a2bf.zip
Replaced argp support for platforms that support it
Argp is really useful, but it's not mandatory.
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h
index 271fdd20..3aa73112 100644
--- a/tests/torture.h
+++ b/tests/torture.h
@@ -12,6 +12,15 @@
#include <setjmp.h>
#include <google/cmockery.h>
+
+/* Used by main to communicate with parse_opt. */
+struct argument_s {
+ char *args[2];
+ int verbose;
+};
+
+void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments);
+
/*
* Returns the verbosity level asked by user
*/