xref: /netbsd-src/usr.sbin/mopd/common/log.h (revision 732d96f1f0a2e042f7c83986df9ae0266b8ec5ef)
1*732d96f1Sjoerg /*	$NetBSD: log.h,v 1.3 2011/08/30 19:49:10 joerg Exp $	*/
226ae5011Schristos 
326ae5011Schristos /*-
426ae5011Schristos  * Copyright (c) 2003 The NetBSD Foundation, Inc.
526ae5011Schristos  * All rights reserved.
626ae5011Schristos  *
726ae5011Schristos  * This code is derived from software contributed to The NetBSD Foundation
826ae5011Schristos  * by Christos Zoulas.
926ae5011Schristos  *
1026ae5011Schristos  * Redistribution and use in source and binary forms, with or without
1126ae5011Schristos  * modification, are permitted provided that the following conditions
1226ae5011Schristos  * are met:
1326ae5011Schristos  * 1. Redistributions of source code must retain the above copyright
1426ae5011Schristos  *    notice, this list of conditions and the following disclaimer.
1526ae5011Schristos  * 2. Redistributions in binary form must reproduce the above copyright
1626ae5011Schristos  *    notice, this list of conditions and the following disclaimer in the
1726ae5011Schristos  *    documentation and/or other materials provided with the distribution.
1826ae5011Schristos  *
1926ae5011Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2026ae5011Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2126ae5011Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2226ae5011Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2326ae5011Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2426ae5011Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2526ae5011Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2626ae5011Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2726ae5011Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2826ae5011Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2926ae5011Schristos  * POSSIBILITY OF SUCH DAMAGE.
3026ae5011Schristos  */
3126ae5011Schristos 
3226ae5011Schristos #ifndef _LOG_H_
3326ae5011Schristos #define _LOG_H_
3426ae5011Schristos 
3526ae5011Schristos __BEGIN_DECLS
3626ae5011Schristos extern int mopInteractive;
37*732d96f1Sjoerg void	mopLogErr(const char *, ...) __dead __printflike(1, 2);
38*732d96f1Sjoerg void	mopLogErrX(const char *, ...) __dead __printflike(1, 2);
39*732d96f1Sjoerg void	mopLogWarn(const char *, ...) __printflike(1, 2);
40*732d96f1Sjoerg void	mopLogWarnX(const char *, ...) __printflike(1, 2);
4126ae5011Schristos __END_DECLS
4226ae5011Schristos 
4326ae5011Schristos #endif /* _LOG_H_ */
44