diff options
author | laforge <laforge> | 2004-04-24 22:50:55 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-04-24 22:50:55 +0000 |
commit | 7b452633ae269422d8e4460d145b6eb93724a4ca (patch) | |
tree | 61909597c3382c65ae1502d45eca6ab3dbd7a96b /ulogd/include/ulogd | |
parent | ab32a1519424cdb54bfb690ee20e0c05fba38a83 (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 'ulogd/include/ulogd')
-rw-r--r-- | ulogd/include/ulogd/ulogd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ulogd/include/ulogd/ulogd.h b/ulogd/include/ulogd/ulogd.h index 8ad1692..d79fbba 100644 --- a/ulogd/include/ulogd/ulogd.h +++ b/ulogd/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, ..) */ |