From 02fd79105a7fe5ac6a04e76db27b163e4064f759 Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Sun, 30 Aug 2026 18:05:26 +0200 Subject: work on config and args --- src/args.h | 14 ++++++++++++++ 1 file changed, 14 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..79ea308 --- /dev/null +++ b/src/args.h @@ -0,0 +1,14 @@ +#include "stddef.h" + +#define DEFAULT_CONFIG_PATH "/etc/pow/opts.lua" + +#define POW_FLAG_HELP 1 + +typedef struct { + int flags; + + char *cfg_path; +} pow_args; + +int pow_args_parse(int argc, char *argv[], pow_args *args); +void pow_args_print_help(); -- cgit v1.3