aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-12-02 12:13:56 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit20eb7727954f9d8b7164146895904bbe595f5932 (patch)
tree7db505d2ad5878a57bb5ed31af012ec61ffce772 /include
parentb992fe3ef83e102a999084070214b8295f824f6a (diff)
downloadserd-20eb7727954f9d8b7164146895904bbe595f5932.tar.gz
serd-20eb7727954f9d8b7164146895904bbe595f5932.tar.bz2
serd-20eb7727954f9d8b7164146895904bbe595f5932.zip
Rename SerdErrorFunc to SerdLogFunc
Diffstat (limited to 'include')
-rw-r--r--include/serd/error.h6
-rw-r--r--include/serd/world.h6
2 files changed, 6 insertions, 6 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);
/**
@}