aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
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;
/**