diff options
Diffstat (limited to 'src/args.h')
-rw-r--r-- | src/args.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/args.h b/src/args.h new file mode 100644 index 0000000..780a621 --- /dev/null +++ b/src/args.h @@ -0,0 +1,31 @@ +#ifndef PLOC_GEN_ARGS_H +#define PLOC_GEN_ARGS_H + +#include <stdbool.h> +#include "pattern/pattern.h" +#include "io/io.h" +#include "utils/args.h" +#include <stdio.h> + +struct args +{ + struct pattern pattern; + /* + * Negative value means unlimited. + */ + int gen_count; + int from_count; + int to_count; + bool (*gen)(struct pattern *); + void (*print)(FILE *, struct print_params, struct pattern *); + struct print_params params; + bool wait; + + bool single_output; + bool standard_output; + char output[512]; +}; + +enum alr load_args(int argc, char **argv, struct args *args); + +#endif
\ No newline at end of file |