/* -*-c-*-
*
- * $Id: fw.h,v 1.2 1999/07/03 13:56:33 mdw Exp $
+ * $Id: fw.h,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Main header file for port forwarder
*
- * (c) 1999 Mark Wooding
+ * (c) 1999 Straylight/Edgeware
*/
/*----- Licensing notice --------------------------------------------------*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fw.h,v $
- * Revision 1.2 1999/07/03 13:56:33 mdw
- * Add flag saying whether to log messages to syslog or stderr.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef FW_H
#define FW_H
/*----- Header files ------------------------------------------------------*/
+#include <time.h>
+#include <fcntl.h>
#include <mLib/sel.h>
/*----- 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 -------------------------------------------------*/