about summary refs log tree commit diff
path: root/src/tool/tool.h
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-09-24 16:29:55 +0200
committerAlexander Barton <alex@barton.de>2010-09-24 16:29:55 +0200
commit4943bbb066bb49603743ae03846689d2f82441b6 (patch)
treec0532e6b04cc155ff2f4df28d6dd087bccca97fe /src/tool/tool.h
parente2ba7e08b4a4ca73a74c10e7189b46f6d8dcfc75 (diff)
downloadngircd-4943bbb066bb49603743ae03846689d2f82441b6.tar.gz
ngircd-4943bbb066bb49603743ae03846689d2f82441b6.zip
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.
Diffstat (limited to 'src/tool/tool.h')
-rw-r--r--src/tool/tool.h7
1 files changed, 6 insertions, 1 deletions
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