From 4943bbb066bb49603743ae03846689d2f82441b6 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 24 Sep 2010 16:29:55 +0200 Subject: New functions ngt_SyslogFacilityName() and ngt_SyslogFacilityID() These both functions translate syslog facility names to ID numbers and vice versa. On systems that don't define the facilitynames[] array in syslog.h, we try to build one ourself. --- src/tool/tool.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/tool/tool.h') diff --git a/src/tool/tool.h b/src/tool/tool.h index d17e7872..ea9e96b9 100644 --- a/src/tool/tool.h +++ b/src/tool/tool.h @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2008 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2010 Alexander Barton (alex@barton.de) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,11 @@ GLOBAL void ngt_TrimStr PARAMS((char *String )); GLOBAL char *ngt_UpperStr PARAMS((char *String )); GLOBAL char *ngt_LowerStr PARAMS((char *String )); +#ifdef SYSLOG +GLOBAL char *ngt_SyslogFacilityName PARAMS((int Facility)); +GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility)); +#endif + #endif -- cgit 1.4.1