X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/e82f7154f65062d9ac8b9677862774498b331058..5d9fd22aa85423521ff7c4c004f6e6299d99aad0:/fw.h diff --git a/fw.h b/fw.h index 8c87832..afd313e 100644 --- a/fw.h +++ b/fw.h @@ -1,13 +1,11 @@ /* -*-c-*- * - * $Id: fw.h,v 1.1 1999/07/01 08:56:23 mdw Exp $ - * * Main header file for port forwarder * - * (c) 1999 Mark Wooding + * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the `fw' port forwarder. * @@ -15,25 +13,17 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * `fw' is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with `fw'; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: fw.h,v $ - * Revision 1.1 1999/07/01 08:56:23 mdw - * Initial revision - * - */ - #ifndef FW_H #define FW_H @@ -43,12 +33,42 @@ /*----- Header files ------------------------------------------------------*/ +#include +#include #include /*----- Global variables --------------------------------------------------*/ extern sel_state *sel; +/*----- 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 -------------------------------------------------*/ #ifdef __cplusplus