diff options
| author | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-30 18:05:26 +0200 |
|---|---|---|
| committer | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-30 18:05:26 +0200 |
| commit | 02fd79105a7fe5ac6a04e76db27b163e4064f759 (patch) | |
| tree | b4cdc0ad498078555259bf71c0fe8b445f23217d /src/args.h | |
| parent | 5e2367bfbe6a06c493d4b8e50917fb599a9ee5af (diff) | |
work on config and args
Diffstat (limited to 'src/args.h')
| -rw-r--r-- | src/args.h | 14 |
1 files changed, 14 insertions, 0 deletions
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(); |
