summaryrefslogtreecommitdiff
path: root/support/dktools/dk4const.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/dk4const.h
Initial commit
Diffstat (limited to 'support/dktools/dk4const.h')
-rw-r--r--support/dktools/dk4const.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/support/dktools/dk4const.h b/support/dktools/dk4const.h
new file mode 100644
index 0000000000..f1a0285391
--- /dev/null
+++ b/support/dktools/dk4const.h
@@ -0,0 +1,60 @@
+/** @file dk4const.h Numeric constants
+for log level and string table entry length.
+
+*/
+#ifndef DK4CONST_H_INCLUDED
+/** Protection against multiple inclusion.
+*/
+#define DK4CONST_H_INCLUDED 1
+
+
+
+#ifndef DK4CONF_H_INCLUDED
+#include "dk4conf.h"
+#endif
+
+
+
+/** Log levels, higher numeric values correspond to lower priorities.
+*/
+enum {
+ /** This message priority never occurs. */
+DK4_LL_NONE = 0,
+
+ /** Panic message. */
+DK4_LL_PANIC,
+
+ /** Fatal error message. */
+DK4_LL_FATAL,
+
+ /** Error message. */
+DK4_LL_ERROR,
+
+ /** Warning message. */
+DK4_LL_WARNING,
+
+ /** Informational message. */
+DK4_LL_INFO,
+
+ /** Progress message. */
+DK4_LL_PROGRESS,
+
+ /** Debug message. */
+DK4_LL_DEBUG,
+
+ /** Message can be ignored. */
+DK4_LL_IGNORE
+};
+
+
+
+/** Maximum string table line width.
+*/
+enum {
+ /** Maximum string table line width.
+ */
+ DK4_MAX_STRING_TABLE_LINE_LENGTH = 1024
+};
+
+#endif
+/* ifndef DK4CONST_H_INCLUDED */