diff options
Diffstat (limited to 'include/options.h')
| -rw-r--r-- | include/options.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/options.h b/include/options.h new file mode 100644 index 0000000..5a7747e --- /dev/null +++ b/include/options.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +/* Copyright 2026 Thorsten Töpper + * + * vim:ts=4:sw=4:expandtab + */ + +#ifndef OPTIONS_H +#define OPTIONS_H + +#include <stdbool.h> + +/* === DEFINITIONS === */ +/* TODO: if ported to other platforms, those precompiler checks need to be extended */ +#ifndef PATH_SEP +#define PATH_SEP '/' +#endif + + +/* === GLOBAL VARIABLES === */ + +extern bool option_quiet; +extern bool option_show_hidden_entries; + + +int parse_arguments(int argc, char **argv); +void set_option(const char *option_name, char *option_argument); +void usage(char *executable); + +#endif + |
