diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-23 06:21:16 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-23 06:21:16 +0000 |
commit | 8425445c2dd68d91bb62487032151f06d35c583a (patch) | |
tree | 92ef23fb997666d1b09ed65bb788c52dffc1c925 /syslogd-types.h | |
parent | 6b24fa20d4da8a57a2e34b1ca0c3159b93157e1e (diff) | |
download | rsyslog-8425445c2dd68d91bb62487032151f06d35c583a.tar.gz rsyslog-8425445c2dd68d91bb62487032151f06d35c583a.tar.xz rsyslog-8425445c2dd68d91bb62487032151f06d35c583a.zip |
simplified action calling using new interface Warning: this version has a
structure alignment issue in omusrmsg.c, I currently do not know why. I
check in so that others can look at it.
Diffstat (limited to 'syslogd-types.h')
-rw-r--r-- | syslogd-types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syslogd-types.h b/syslogd-types.h index f41e18b7..b565a964 100644 --- a/syslogd-types.h +++ b/syslogd-types.h @@ -134,6 +134,7 @@ struct syslogTime { */ struct filed { struct filed *f_next; /* next in linked list */ + int (*doAction)(struct filed *); /* method to call to perform an action */ short f_type; /* entry type, see below */ short f_file; /* file descriptor */ time_t f_time; /* time this was last written */ @@ -192,12 +193,13 @@ struct filed { } status; char *savedMsg; int savedMsgLen; /* length of savedMsg in octets */ + time_t ttSuspend; /* time selector was suspended */ # ifdef USE_PTHREADS pthread_mutex_t mtxTCPSend; # endif } f_forw; /* forwarding address */ struct { - char f_fname[MAXFNAME];/* file or template name (dispaly only) */ + char f_fname[MAXFNAME];/* file or template name (display only) */ struct template *pTpl; /* pointer to template object */ char bDynamicName; /* 0 - static name, 1 - dynamic name (with properties) */ int fCreateMode; /* file creation mode for open() */ |