From 8a5b02b30e67d47b354ecaef0e93b76ad425785d Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 24 Apr 2004 22:50:55 +0000 Subject: - add .init and .fini member to output plugin - defer file opens + other initialization until after setuid() was called - cosmetic cleanup (no _ in static functions, use 'static' whenever possible) --- include/ulogd/ulogd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/ulogd/ulogd.h') diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index 8ad1692..d79fbba 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -9,7 +9,7 @@ * * this code is released under the terms of GNU GPL * - * $Id: ulogd.h,v 1.16 2002/06/13 12:55:59 laforge Exp $ + * $Id$ */ #include @@ -107,6 +107,10 @@ typedef struct ulog_output { struct ulog_output *next; /* name of this ouput plugin */ char name[ULOGD_MAX_KEYLEN]; + /* callback for initialization */ + int (*init)(void); + /* callback for de-initialization */ + void (*fini)(void); /* callback function */ int (*output)(ulog_iret_t *ret); /* callback function for signals (SIGHUP, ..) */ -- cgit v1.2.3