aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 8aa22f7a..4f8d40c5 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -159,7 +159,8 @@ typedef enum {
SERD_ERR_ID_CLASH, /**< Encountered clashing blank node IDs */
SERD_ERR_BAD_CURIE, /**< Invalid CURIE (e.g. prefix does not exist) */
SERD_ERR_INTERNAL, /**< Unexpected internal error (should not happen) */
- SERD_ERR_OVERFLOW /**< Stack overflow */
+ SERD_ERR_OVERFLOW, /**< Stack overflow */
+ SERD_ERR_INVALID /**< Invalid data */
} SerdStatus;
/**
@@ -349,10 +350,20 @@ typedef struct {
} SerdBuffer;
/**
+ Log message level.
+*/
+typedef enum {
+ SERD_LOG_LEVEL_INFO = 0, /**< Normal informative message */
+ SERD_LOG_LEVEL_WARNING = 1, /**< Warning */
+ SERD_LOG_LEVEL_ERROR = 2, /**< Error */
+} SerdLogLevel;
+
+/**
A message description.
*/
typedef struct {
SerdStatus status; /**< Status code */
+ SerdLogLevel level; /**< Log level */
const SerdCursor* cursor; /**< Origin of message, or NULL */
const char* fmt; /**< Message format string (printf style) */
va_list* args; /**< Arguments for fmt */