1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * See the COPYRIGHT file distributed with this work for additional
9  * information regarding copyright ownership.
10  */
11 
12 #ifndef ISC_SYSLOG_H
13 #define ISC_SYSLOG_H 1
14 
15 #include <isc/lang.h>
16 #include <isc/types.h>
17 
18 ISC_LANG_BEGINDECLS
19 
20 isc_result_t
21 isc_syslog_facilityfromstring(const char *str, int *facilityp);
22 /*
23  * Convert 'str' to the appropriate syslog facility constant.
24  *
25  * Requires:
26  *
27  *	'str' is not NULL
28  *	'facilityp' is not NULL
29  *
30  * Returns:
31  * 	ISC_R_SUCCESS
32  * 	ISC_R_NOTFOUND
33  */
34 
35 ISC_LANG_ENDDECLS
36 
37 #endif /* ISC_SYSLOG_H */
38