From 715dec1ad6f3825e3960a716be4decc5fcc0aa80 Mon Sep 17 00:00:00 2001 From: simon <> Date: Wed, 15 Oct 1997 11:27:18 +0000 Subject: [PATCH] Syslog version --- gild.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gild.h b/gild.h index 6c022ed..5e95117 100644 --- a/gild.h +++ b/gild.h @@ -12,15 +12,21 @@ * * \**************************************************************************/ +/* $Header$ */ + #include #include #include #include #include #include +#include #include +#define GILD_NAME "gild" +#define GILD_VERSION "$Revision$" +#define GILD_ID "gild $Revision$" #define CONFIG_PATH "/usr/local/etc/gild/gild.conf" #define DEFAULT_PORT_NO 8421 @@ -30,10 +36,6 @@ #define STDOUT_FILENO 1 #define STDERR_FILENO 2 - -#define FATAL_ERROR 1 -#define NOTICE 0 - #define DEBUG 1 #define ever (;;) @@ -55,6 +57,9 @@ void error( int severity); char * get_handler_command( char * match); /* find a handler whose pattern matches match, and return it's command */ +int log( int level, char *message); +/* hand this message over to the syslog daemon for recording */ + int parse_config( char * path); /* parse the config file and identify the handlers I handle */