dm_error.h revision b7d26471
1629baa8cSmrg/************************************************************
2629baa8cSmrg
3629baa8cSmrgCopyright 1998 by Thomas E. Dickey <dickey@clark.net>
4629baa8cSmrg
5629baa8cSmrg                        All Rights Reserved
6629baa8cSmrg
7629baa8cSmrgPermission is hereby granted, free of charge, to any person obtaining a
8629baa8cSmrgcopy of this software and associated documentation files (the
9629baa8cSmrg"Software"), to deal in the Software without restriction, including
10629baa8cSmrgwithout limitation the rights to use, copy, modify, merge, publish,
11629baa8cSmrgdistribute, sublicense, and/or sell copies of the Software, and to
12629baa8cSmrgpermit persons to whom the Software is furnished to do so, subject to
13629baa8cSmrgthe following conditions:
14629baa8cSmrg
15629baa8cSmrgThe above copyright notice and this permission notice shall be included
16629baa8cSmrgin all copies or substantial portions of the Software.
17629baa8cSmrg
18629baa8cSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19629baa8cSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20629baa8cSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21629baa8cSmrgIN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
22629baa8cSmrgCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23629baa8cSmrgTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24629baa8cSmrgSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25629baa8cSmrg
26629baa8cSmrgExcept as contained in this notice, the name(s) of the above copyright
27629baa8cSmrgholders shall not be used in advertising or otherwise to promote the
28629baa8cSmrgsale, use or other dealings in this Software without prior written
29629baa8cSmrgauthorization.
30629baa8cSmrg
31629baa8cSmrg********************************************************/
32629baa8cSmrg
33629baa8cSmrg
34629baa8cSmrg#ifndef _DM_ERROR_H_
35629baa8cSmrg# define _DM_ERROR_H_ 1
36629baa8cSmrg
37629baa8cSmrgextern void Debug        (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
38629baa8cSmrgextern void InitErrorLog (void);
39629baa8cSmrgextern void LogAppend    (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
40629baa8cSmrgextern void LogError     (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
41629baa8cSmrgextern void LogInfo      (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
42629baa8cSmrgextern void LogOutOfMem  (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2);
43b7d26471Smrgextern void LogPanic     (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2) _X_NORETURN;
44629baa8cSmrg
45629baa8cSmrg
46629baa8cSmrg#endif /* _DM_ERROR_H_ */
47