utils.h 597 B

12345678910111213141516171819
  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. bool parse_args(int *argc, char ***argv, ...);
  6. extern char *err_output;
  7. void save_err_output(const char *fmt, ...);
  8. extern unsigned int test_cb_called;
  9. char *test_noarg(void *arg);
  10. char *test_arg(const char *optarg, const char *arg);
  11. void show_arg(char buf[OPT_SHOW_LEN], const char *arg);
  12. extern struct opt_table short_table[];
  13. extern struct opt_table long_table[];
  14. extern struct opt_table long_and_short_table[];
  15. extern struct opt_table subtables[];
  16. #endif /* CCAN_OPT_TEST_UTILS_H */