1 /*
2 Copyright 2020, Dirk Krause. All rights reserved.
3 SPDX-License-Identifier:	BSD-3-Clause
4 */
5 
6 /**	@file	dk4const.h	Numeric constants
7 for log level and string table entry length.
8 
9 */
10 #ifndef	DK4CONST_H_INCLUDED
11 /**	Protection against multiple inclusion.
12 */
13 #define	DK4CONST_H_INCLUDED	1
14 
15 
16 
17 #ifndef DK4CONF_H_INCLUDED
18 #if DK4_BUILDING_DKTOOLS4
19 #include "dk4conf.h"
20 #else
21 #include <dktools-4/dk4conf.h>
22 #endif
23 #endif
24 
25 
26 
27 /**	Log levels, higher numeric values correspond to lower priorities.
28 */
29 enum {
30 		/** This message priority never occurs. */
31 DK4_LL_NONE     =       0,
32 
33 		/** Panic message. */
34 DK4_LL_PANIC,
35 
36 		/** Fatal error message. */
37 DK4_LL_FATAL,
38 
39 		/** Error message. */
40 DK4_LL_ERROR,
41 
42 		/** Warning message. */
43 DK4_LL_WARNING,
44 
45 		/** Informational message. */
46 DK4_LL_INFO,
47 
48 		/** Progress message. */
49 DK4_LL_PROGRESS,
50 
51 		/** Debug message. */
52 DK4_LL_DEBUG,
53 
54 		/** Message can be ignored. */
55 DK4_LL_IGNORE
56 };
57 
58 
59 
60 /**	Maximum string table line width.
61 */
62 enum {
63 					/**	Maximum string table line width.
64 					*/
65   DK4_MAX_STRING_TABLE_LINE_LENGTH	= 1024
66 };
67 
68 #endif
69 /* ifndef DK4CONST_H_INCLUDED */
70