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 /*! \file */ 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 *\li 'str' is not NULL 30 *\li 'facilityp' is not NULL 31 * 32 * Returns: 33 * \li #ISC_R_SUCCESS 34 * \li #ISC_R_NOTFOUND 35 */ 36 37 ISC_LANG_ENDDECLS 38 39 #endif /* ISC_SYSLOG_H */ 40