aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/serd/error.h6
-rw-r--r--include/serd/world.h6
-rw-r--r--src/reader.h2
-rw-r--r--src/world.c6
-rw-r--r--src/world.h10
5 files changed, 15 insertions, 15 deletions
diff --git a/include/serd/error.h b/include/serd/error.h
index 79b22a29..7051bd4f 100644
--- a/include/serd/error.h
+++ b/include/serd/error.h
@@ -28,13 +28,13 @@ typedef struct {
} SerdError;
/**
- Callback function for errors.
+ Callback function to log errors.
@param handle Handle for user data.
@param error Error description.
*/
-typedef SerdStatus (*SerdErrorFunc)(void* ZIX_NULLABLE handle,
- const SerdError* ZIX_NONNULL error);
+typedef SerdStatus (*SerdLogFunc)(void* ZIX_NULLABLE handle,
+ const SerdError* ZIX_NONNULL error);
/**
@}
diff --git a/include/serd/world.h b/include/serd/world.h
index 0017b6eb..a950a1aa 100644
--- a/include/serd/world.h
+++ b/include/serd/world.h
@@ -79,9 +79,9 @@ serd_world_get_blank(SerdWorld* ZIX_NONNULL world);
no error function is set, errors are printed to stderr.
*/
SERD_API void
-serd_world_set_error_func(SerdWorld* ZIX_NONNULL world,
- SerdErrorFunc ZIX_NULLABLE error_func,
- void* ZIX_NULLABLE handle);
+serd_world_set_error_func(SerdWorld* ZIX_NONNULL world,
+ SerdLogFunc ZIX_NULLABLE error_func,
+ void* ZIX_NULLABLE handle);
/**
@}
diff --git a/src/reader.h b/src/reader.h
index 7bd4ff95..17c0c49d 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -36,7 +36,7 @@ typedef struct {
struct SerdReaderImpl {
SerdWorld* world;
const SerdSink* sink;
- SerdErrorFunc error_func;
+ SerdLogFunc error_func;
void* error_handle;
SerdNode* rdf_first;
SerdNode* rdf_rest;
diff --git a/src/world.c b/src/world.c
index 837298f4..cb4ba02d 100644
--- a/src/world.c
+++ b/src/world.c
@@ -154,9 +154,9 @@ serd_world_get_blank(SerdWorld* const world)
}
void
-serd_world_set_error_func(SerdWorld* world,
- SerdErrorFunc error_func,
- void* handle)
+serd_world_set_error_func(SerdWorld* world,
+ SerdLogFunc error_func,
+ void* handle)
{
world->error_func = error_func;
world->error_handle = handle;
diff --git a/src/world.h b/src/world.h
index 96252a7a..83393a5a 100644
--- a/src/world.h
+++ b/src/world.h
@@ -13,11 +13,11 @@
#include <stdio.h>
struct SerdWorldImpl {
- SerdLimits limits;
- SerdErrorFunc error_func;
- void* error_handle;
- uint32_t next_blank_id;
- SerdNode* blank_node;
+ SerdLimits limits;
+ SerdLogFunc error_func;
+ void* error_handle;
+ uint32_t next_blank_id;
+ SerdNode* blank_node;
};
/// Open a file configured for fast sequential reading