1330449Seadler/*- 2124758Semax * log.h 3124758Semax * 4330449Seadler * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 5330449Seadler * 6124758Semax * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com> 7124758Semax * All rights reserved. 8124758Semax * 9124758Semax * Redistribution and use in source and binary forms, with or without 10124758Semax * modification, are permitted provided that the following conditions 11124758Semax * are met: 12124758Semax * 1. Redistributions of source code must retain the above copyright 13124758Semax * notice, this list of conditions and the following disclaimer. 14124758Semax * 2. Redistributions in binary form must reproduce the above copyright 15124758Semax * notice, this list of conditions and the following disclaimer in the 16124758Semax * documentation and/or other materials provided with the distribution. 17124758Semax * 18124758Semax * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19124758Semax * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20124758Semax * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21124758Semax * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22124758Semax * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23124758Semax * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24124758Semax * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25124758Semax * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26124758Semax * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27124758Semax * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28124758Semax * SUCH DAMAGE. 29124758Semax * 30124758Semax * $Id: log.h,v 1.1 2004/01/07 23:15:00 max Exp $ 31124758Semax * $FreeBSD: stable/11/usr.sbin/bluetooth/sdpd/log.h 330449 2018-03-05 07:26:05Z eadler $ 32124758Semax */ 33124758Semax 34124758Semax#ifndef _LOG_H_ 35124758Semax#define _LOG_H_ 36124758Semax 37124758Semaxvoid log_open (char const *prog, int32_t log2stderr); 38124758Semaxvoid log_close (void); 39124758Semaxvoid log_emerg (char const *message, ...); 40124758Semaxvoid log_alert (char const *message, ...); 41124758Semaxvoid log_crit (char const *message, ...); 42124758Semaxvoid log_err (char const *message, ...); 43124758Semaxvoid log_warning (char const *message, ...); 44124758Semaxvoid log_notice (char const *message, ...); 45124758Semaxvoid log_info (char const *message, ...); 46124758Semaxvoid log_debug (char const *message, ...); 47124758Semax 48124758Semax#endif /* ndef _LOG_H_ */ 49124758Semax 50