aboutsummaryrefslogtreecommitdiff
path: root/src/args.h
diff options
context:
space:
mode:
authorSopár Adrián <dev.adrian.sopar@protonmail.com>2022-07-05 23:02:16 +0200
committerSopár Adrián <dev.adrian.sopar@protonmail.com>2022-07-05 23:02:16 +0200
commitc5cd2b2443dc48aaeb61feac4a96071c7bc9790e (patch)
tree38f611224caf6f3e15b7121b06c1b1e9c5e129b3 /src/args.h
Init commit.HEADmaster
Diffstat (limited to 'src/args.h')
-rw-r--r--src/args.h31
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