From 69d606de2cb171bef5936459e12fbc299c3c63fb Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 6 Dec 2018 11:30:36 +0100 Subject: mg2d: define log levels --- mg2d.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'mg2d.h') 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; /** -- cgit v1.2.3