mirror of https://github.com/GOSTSec/sgminer
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
597 B
20 lines
597 B
14 years ago
|
#ifndef CCAN_OPT_TEST_UTILS_H
|
||
|
#define CCAN_OPT_TEST_UTILS_H
|
||
|
#include <ccan/opt/opt.h>
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
bool parse_args(int *argc, char ***argv, ...);
|
||
|
extern char *err_output;
|
||
|
void save_err_output(const char *fmt, ...);
|
||
|
|
||
|
extern unsigned int test_cb_called;
|
||
|
char *test_noarg(void *arg);
|
||
|
char *test_arg(const char *optarg, const char *arg);
|
||
|
void show_arg(char buf[OPT_SHOW_LEN], const char *arg);
|
||
|
|
||
|
extern struct opt_table short_table[];
|
||
|
extern struct opt_table long_table[];
|
||
|
extern struct opt_table long_and_short_table[];
|
||
|
extern struct opt_table subtables[];
|
||
|
#endif /* CCAN_OPT_TEST_UTILS_H */
|