diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-12-06 11:30:36 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-12-06 11:30:36 +0100 |
commit | 69d606de2cb171bef5936459e12fbc299c3c63fb (patch) | |
tree | cf21f81e5892a6b016b7e021aacc30a2e728e346 /mg2d.h | |
parent | 111d80e5c550b2c505be87e48558b93ac2b42103 (diff) |
mg2d: define log levels
Diffstat (limited to 'mg2d.h')
-rw-r--r-- | mg2d.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -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; /** |