aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-12-06 11:30:36 +0100
committerAnton Khirnov <anton@khirnov.net>2018-12-06 11:30:36 +0100
commit69d606de2cb171bef5936459e12fbc299c3c63fb (patch)
treecf21f81e5892a6b016b7e021aacc30a2e728e346 /mg2d.h
parent111d80e5c550b2c505be87e48558b93ac2b42103 (diff)
mg2d: define log levels
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index 4ccb5da..2682918 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -95,6 +95,41 @@ enum MG2DDiffCoeff {
MG2D_DIFF_COEFF_NB,
};
+enum MG2DLogLevel {
+ /**
+ * The log message indicates abnormal program failure. Should never happen
+ * unless there are bugs or grossly invaid user input.
+ * Will typically be followed by program termination.
+ */
+ MG2D_LOG_FATAL = 0x0,
+ /**
+ * The log message indicates an error state, so that requested operation
+ * cannot complete successfully.
+ * Will typically be followed by the API function being called returning an
+ * error.
+ */
+ MG2D_LOG_ERROR = 0x10,
+ /**
+ * The log message indicates a suspicious or suboptimal program state.
+ */
+ MG2D_LOG_WARNING = 0x20,
+ /**
+ * The log message provides commonly useful information about normal program
+ * behaviour.
+ */
+ MG2D_LOG_INFO = 0x30,
+ /**
+ * The log message provides detailed extra information about normal program
+ * behaviour.
+ */
+ MG2D_LOG_VERBOSE = 0x40,
+ /**
+ * The log message provides highly detailed extra information about normal
+ * program behaviour.
+ */
+ MG2D_LOG_DEBUG = 0x50,
+};
+
typedef struct MG2DInternal MG2DInternal;
/**