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 https://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 
13 #ifndef ISC_SYSLOG_H
14 #define ISC_SYSLOG_H 1
15 
16 /*! \file */
17 
18 #include <isc/lang.h>
19 #include <isc/types.h>
20 
21 ISC_LANG_BEGINDECLS
22 
23 isc_result_t
24 isc_syslog_facilityfromstring(const char *str, int *facilityp);
25 /*%<
26  * Convert 'str' to the appropriate syslog facility constant.
27  *
28  * Requires:
29  *
30  *\li	'str' is not NULL
31  *\li	'facilityp' is not NULL
32  *
33  * Returns:
34  * \li	#ISC_R_SUCCESS
35  * \li	#ISC_R_NOTFOUND
36  */
37 
38 ISC_LANG_ENDDECLS
39 
40 #endif /* ISC_SYSLOG_H */
41