diff options
author | laforge <laforge> | 2004-04-24 22:50:55 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-04-24 22:50:55 +0000 |
commit | 8a5b02b30e67d47b354ecaef0e93b76ad425785d (patch) | |
tree | d4a75f962cfe2600e660a588dc9907c211508517 /include/ulogd/ulogd.h | |
parent | 9fa19bdb804fac35050823a6a80e4859531f663b (diff) |
- 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)
Diffstat (limited to 'include/ulogd/ulogd.h')
-rw-r--r-- | include/ulogd/ulogd.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <libipulog/libipulog.h> @@ -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, ..) */ |