aboutsummaryrefslogtreecommitdiff
path: root/include/options.h
blob: 5a7747e222ea6a02aa31544ad7a6ee8f720da19f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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