X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/4fe3137194f15424f819a1e4c90797339e2c541c..17be1d6b52cc22403bcfec5e8547bf612d214690:/fw.h diff --git a/fw.h b/fw.h index 6a5750e..d9a04ad 100644 --- a/fw.h +++ b/fw.h @@ -1,10 +1,10 @@ /* -*-c-*- * - * $Id: fw.h,v 1.2 1999/07/03 13:56:33 mdw Exp $ + * $Id: fw.h,v 1.3 1999/07/26 23:30:42 mdw Exp $ * * Main header file for port forwarder * - * (c) 1999 Mark Wooding + * (c) 1999 Straylight/Edgeware */ /*----- Licensing notice --------------------------------------------------* @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: fw.h,v $ + * Revision 1.3 1999/07/26 23:30:42 mdw + * Major reconstruction work for new design. + * * Revision 1.2 1999/07/03 13:56:33 mdw * Add flag saying whether to log messages to syslog or stderr. * @@ -46,14 +49,41 @@ /*----- Header files ------------------------------------------------------*/ +#include +#include #include /*----- Global variables --------------------------------------------------*/ extern sel_state *sel; -extern unsigned flags; -#define FW_SYSLOG 1u +/*----- Functions provided ------------------------------------------------*/ + +/* --- @fw_log@ --- * + * + * Arguments: @time_t t@ = when the connection occurred or (@-1@) + * @const char *fmt@ = format string to fill in + * @...@ = other arguments + * + * Returns: --- + * + * Use: Logs a connection. + */ + +extern void fw_log(time_t /*t*/, const char */*fmt*/, ...); + +/* --- @fw_inc@, @fw_dec@ --- * + * + * Arguments: --- + * + * Returns: --- + * + * Use: Increments or decrements the active thing count. `fw' won't + * quit while there are active things. + */ + +extern void fw_inc(void); +extern void fw_dec(void); /*----- That's all, folks -------------------------------------------------*/