1/************************************************************ 2 3Copyright 1998 by Thomas E. Dickey <dickey@clark.net> 4 5 All Rights Reserved 6 7Permission is hereby granted, free of charge, to any person obtaining a 8copy of this software and associated documentation files (the 9"Software"), to deal in the Software without restriction, including 10without limitation the rights to use, copy, modify, merge, publish, 11distribute, sublicense, and/or sell copies of the Software, and to 12permit persons to whom the Software is furnished to do so, subject to 13the following conditions: 14 15The above copyright notice and this permission notice shall be included 16in all copies or substantial portions of the Software. 17 18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 22CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 26Except as contained in this notice, the name(s) of the above copyright 27holders shall not be used in advertising or otherwise to promote the 28sale, use or other dealings in this Software without prior written 29authorization. 30 31********************************************************/ 32 33 34#ifndef _DM_ERROR_H_ 35# define _DM_ERROR_H_ 1 36 37extern void Debug (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); 38extern void InitErrorLog (void); 39extern void LogAppend (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); 40extern void LogError (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); 41extern void LogInfo (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); 42extern void LogOutOfMem (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); 43extern void LogPanic (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2) _X_NORETURN; 44 45 46#endif /* _DM_ERROR_H_ */ 47