diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-14 15:43:50 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-14 15:43:50 +0000 |
commit | 52b6b6f2211718101e43de05e5292f555e8198a8 (patch) | |
tree | e84f9d0fe3cc2c436d944357812712e6961ef296 /srUtils.h | |
parent | d6b22dd69ea85d024eaaac93e2a6521669f1ccc0 (diff) | |
download | rsyslog-52b6b6f2211718101e43de05e5292f555e8198a8.tar.gz rsyslog-52b6b6f2211718101e43de05e5292f555e8198a8.tar.xz rsyslog-52b6b6f2211718101e43de05e5292f555e8198a8.zip |
- added new facility and severity syntaxes to cfsysline handler
- implemented $InputFileFacility config directive
- implemented $InputFileSeverity config directive
Diffstat (limited to 'srUtils.h')
-rwxr-xr-x | srUtils.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -34,13 +34,13 @@ #define TABLE_ALLPRI 0xFF /* Value to indicate all priorities in f_pmask */ #define LOG_MARK LOG_MAKEPRI(LOG_NFACILITIES, 0) /* mark "facility" */ -struct code { +typedef struct syslogName_s { char *c_name; int c_val; -}; +} syslogName_t; -extern struct code syslogPriNames[]; -extern struct code syslogFacNames[]; +extern syslogName_t syslogPriNames[]; +extern syslogName_t syslogFacNames[]; /** * A reimplementation of itoa(), as this is not available @@ -86,7 +86,7 @@ long timeoutVal(struct timespec *pt); void mutexCancelCleanup(void *arg); void srSleep(int iSeconds, int iuSeconds); char *rs_strerror_r(int errnum, char *buf, size_t buflen); -int decodeSyslogName(uchar *name, struct code *codetab); +int decodeSyslogName(uchar *name, syslogName_t *codetab); /* mutex operations */ /* some macros to cancel-safe lock a mutex (it will automatically be released |