]> arthur.barton.de Git - ngircd-alex.git/blob - src/tool/tool.h
const'ify ngt_SyslogFacilityName() function
[ngircd-alex.git] / src / tool / tool.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001-2010 Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * Tool functions (Header)
12  */
13
14
15 #ifndef __tool_h__
16 #define __tool_h__
17 #include "portab.h"
18
19 #ifdef HAVE_ARPA_INET_H
20 # include <arpa/inet.h>
21 #else
22 # define PF_INET AF_INET
23 #endif
24
25 GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
26
27 GLOBAL void ngt_TrimStr PARAMS((char *String ));
28
29 GLOBAL char *ngt_UpperStr PARAMS((char *String ));
30 GLOBAL char *ngt_LowerStr PARAMS((char *String ));
31
32 #ifdef SYSLOG
33 GLOBAL const char *ngt_SyslogFacilityName PARAMS((int Facility));
34 GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
35 #endif
36
37 #endif
38
39
40 /* -eof- */