1290001Sglebius/* 2290001Sglebius * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") 3290001Sglebius * Copyright (C) 1999-2001 Internet Software Consortium. 4290001Sglebius * 5290001Sglebius * Permission to use, copy, modify, and/or distribute this software for any 6290001Sglebius * purpose with or without fee is hereby granted, provided that the above 7290001Sglebius * copyright notice and this permission notice appear in all copies. 8290001Sglebius * 9290001Sglebius * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10290001Sglebius * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11290001Sglebius * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12290001Sglebius * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13290001Sglebius * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14290001Sglebius * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15290001Sglebius * PERFORMANCE OF THIS SOFTWARE. 16290001Sglebius */ 17290001Sglebius 18290001Sglebius/* $Id: syslog.h,v 1.7 2007/06/19 23:47:19 tbox Exp $ */ 19290001Sglebius 20290001Sglebius#ifndef ISC_SYSLOG_H 21290001Sglebius#define ISC_SYSLOG_H 1 22290001Sglebius 23290001Sglebius/*! \file */ 24290001Sglebius 25290001Sglebius#include <isc/lang.h> 26290001Sglebius#include <isc/types.h> 27290001Sglebius 28290001SglebiusISC_LANG_BEGINDECLS 29290001Sglebius 30290001Sglebiusisc_result_t 31290001Sglebiusisc_syslog_facilityfromstring(const char *str, int *facilityp); 32290001Sglebius/*%< 33290001Sglebius * Convert 'str' to the appropriate syslog facility constant. 34290001Sglebius * 35290001Sglebius * Requires: 36290001Sglebius * 37290001Sglebius *\li 'str' is not NULL 38290001Sglebius *\li 'facilityp' is not NULL 39290001Sglebius * 40290001Sglebius * Returns: 41290001Sglebius * \li #ISC_R_SUCCESS 42290001Sglebius * \li #ISC_R_NOTFOUND 43290001Sglebius */ 44290001Sglebius 45290001SglebiusISC_LANG_ENDDECLS 46290001Sglebius 47290001Sglebius#endif /* ISC_SYSLOG_H */ 48