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