From c5cd2b2443dc48aaeb61feac4a96071c7bc9790e Mon Sep 17 00:00:00 2001 From: Sopár Adrián Date: Tue, 5 Jul 2022 23:02:16 +0200 Subject: Init commit. --- src/args.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/args.h (limited to 'src/args.h') 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 +#include "pattern/pattern.h" +#include "io/io.h" +#include "utils/args.h" +#include + +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 -- cgit v1.2.3