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