/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright 2025 Thorsten Töpper * * dir_monitor - print specified stat() information from entries of a given * directory to stdout. Call it via watch for repeated output to a terminal. * * vim:ts=4:sw=4:expandtab */ #ifndef OPTIONS_H #define OPTIONS_H #include #include "output.h" #include "list_management.h" /* === DEFINITIONS === */ #define PATH_SEP '/' enum esort_type { SORT_BY_SIZE, SORT_BY_TIME }; /* === GLOBAL VARIABLES === */ extern bool option_sort_reverse_order; extern enum esort_type option_sort_type; extern bool option_show_hidden_entries; extern bool option_timestamp_long; int parse_arguments(int argc, char **argv); void set_option(const char *option_name, char *option_argument); /* In theory a part of output, but it's easier to place it near the struct * containing the options in options.c */ void usage(char *executable); #endif