summaryrefslogtreecommitdiffstats
path: root/srUtils.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-14 15:43:50 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-14 15:43:50 +0000
commit52b6b6f2211718101e43de05e5292f555e8198a8 (patch)
treee84f9d0fe3cc2c436d944357812712e6961ef296 /srUtils.h
parentd6b22dd69ea85d024eaaac93e2a6521669f1ccc0 (diff)
downloadrsyslog-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-xsrUtils.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/srUtils.h b/srUtils.h
index 3a66dc22..6540b15a 100755
--- a/srUtils.h
+++ b/srUtils.h
@@ -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