Mercurial > hg > th-libs
changeset 97:a285cdc05810
Add log level enums.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 24 May 2014 21:44:36 +0300 |
parents | 3df6bec3c6b1 |
children | 1760e7f53359 |
files | th_util.h |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/th_util.h Thu May 22 03:29:08 2014 +0300 +++ b/th_util.h Sat May 24 21:44:36 2014 +0300 @@ -61,7 +61,8 @@ /* Error codes */ -enum { +enum +{ // General error codes THERR_OK = 0, THERR_PROGRESS, // Status OK, but operation in progress @@ -93,6 +94,17 @@ #define TH_SYSTEM_ERRORS 100000 +/* Log levels + */ +enum +{ + THLOG_NONE = 0, + THLOG_ERROR, + THLOG_WARNING, + THLOG_INFO, + THLOG_DEBUG, +}; + /* Global variables */