]> git.ozlabs.org Git - ccan/blob - ccan/opt/test/utils.h
opt: new module to parse commandline options.
[ccan] / ccan / opt / test / utils.h
1 #ifndef CCAN_OPT_TEST_UTILS_H
2 #define CCAN_OPT_TEST_UTILS_H
3 #include <ccan/opt/opt.h>
4 #include <stdbool.h>
5
6 bool parse_args(int *argc, char ***argv, ...);
7 extern char *err_output;
8
9 extern unsigned int test_cb_called;
10 char *test_noarg(void *arg);
11 char *test_arg(const char *optarg, void *arg);
12
13 extern struct opt_table short_table[];
14 extern struct opt_table long_table[];
15 extern struct opt_table long_and_short_table[];
16 extern struct opt_table subtables[];
17 #endif /* CCAN_OPT_TEST_UTILS_H */