From 0d41339e258209d89bd0c1500ab7835bc48775bd Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 9 Sep 2000 21:55:46 +0000 Subject: made nlgroup + pluginpath configurable added default values for all config keys started writing ulogd_log --- ulogd/include/ulogd/ulogd.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'ulogd/include') diff --git a/ulogd/include/ulogd/ulogd.h b/ulogd/include/ulogd/ulogd.h index 9ee0691..9e258d3 100644 --- a/ulogd/include/ulogd/ulogd.h +++ b/ulogd/include/ulogd/ulogd.h @@ -1,6 +1,6 @@ #ifndef _ULOGD_H #define _ULOGD_H -/* ulogd, Version $Revision: 1.3 $ +/* ulogd, Version $Revision: 1.4 $ * * first try of a logging daemon for my netfilter ULOG target * for the linux 2.4 netfilter subsystem. @@ -9,7 +9,7 @@ * * this code is released under the terms of GNU GPL * - * $Id: ulogd.h,v 1.3 2000/08/02 12:20:55 laforge Exp $ + * $Id: ulogd.h,v 1.4 2000/08/14 08:28:24 laforge Exp $ */ #include @@ -43,7 +43,8 @@ #define ULOGD_MAX_KEYLEN 32 -#define ulogd_error(format, args...) fprintf(logfile, format, ## args) +#define ulogd_error(format, args...) ulogd_log(8, format, ## args) + extern FILE *logfile; typedef struct ulog_iret { @@ -77,8 +78,11 @@ typedef struct ulog_output { int* (*output)(ulog_iret_t *ret); } ulog_output_t; +/* public interface */ void register_interpreter(ulog_interpreter_t *me); void register_output(ulog_output_t *me); - ulog_iret_t *alloc_ret(const u_int16_t type, const char*); + +/* write a message to the daemons' logfile */ +void ulogd_log(int level, const char *message); #endif -- cgit v1.2.3