X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/aae68c41bca575de5d57e0b3b84e272a225520fd..858a73afbf5018d74920761f7015ac2e7d3987b6:/fwd.h diff --git a/fwd.h b/fwd.h index ba06144..f075c53 100644 --- a/fwd.h +++ b/fwd.h @@ -62,6 +62,7 @@ #include #include #include +#include #include #include @@ -266,14 +267,26 @@ extern sel_state *sel; +/* --- Global state flags --- */ + +extern unsigned flags; + +#define FW_SYSLOG 1u +#define FW_QUIET 2u +#define FW_SET 4u + /* --- Help text --- */ extern const char grammar_text[]; extern const char option_text[]; +/* --- Generally useful magic constants --- */ + +#define NOW ((time_t)-1) + /* --- @fw_log@ --- * * - * Arguments: @time_t t@ = when the connection occurred or (@-1@) + * Arguments: @time_t t@ = when the connection occurred or (@NOW@) * @const char *fmt@ = format string to fill in * @...@ = other arguments *