aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'serd/serd.h')
-rw-r--r--serd/serd.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 3e2f8f45..42946b90 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -783,13 +783,20 @@ serd_node_free(SerdNode* node);
Sink function for log messages
@param handle Handle for user data.
- @param msg Message description.
-*/
-typedef SerdStatus (*SerdMessageFunc)(void* handle, const SerdMessage* msg);
-
-/**
- Sink function for base URI changes
+ @param status Status code
+ @param level Log level
+ @param cursor Origin of message, or NULL
+ @param fmt Message format string (printf style)
+ @param args Arguments corresponding to fmt (printf style)
+*/
+typedef SerdStatus (*SerdMessageFunc)(void* handle,
+ SerdStatus status,
+ SerdLogLevel level,
+ const SerdCursor* cursor,
+ const char* fmt,
+ va_list args);
+/*
Called whenever the base URI of the serialisation changes.
*/
typedef SerdStatus (*SerdBaseFunc)(void* handle, const SerdNode* uri);
@@ -878,7 +885,12 @@ serd_world_set_message_sink(SerdWorld* world,
/// Write a message to the log
SERD_API
SerdStatus
-serd_world_log(const SerdWorld* world, const SerdMessage* msg);
+serd_world_vlogf(const SerdWorld* world,
+ SerdStatus st,
+ SerdLogLevel level,
+ const SerdCursor* cursor,
+ const char* fmt,
+ va_list args);
/// Write a message to the log
SERD_API