aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/world.c b/src/world.c
index 7b0343cc..13b593b2 100644
--- a/src/world.c
+++ b/src/world.c
@@ -53,8 +53,8 @@ serd_world_fopen(SerdWorld* world, const char* path, const char* mode)
SerdStatus
serd_world_log(const SerdWorld* world, const SerdMessage* msg)
{
- if (world->msg_sink) {
- world->msg_sink(world->msg_handle, msg);
+ if (world->msg_func) {
+ world->msg_func(world->msg_handle, msg);
} else {
fprintf(stderr, "error: ");
if (msg->cursor) {
@@ -142,9 +142,9 @@ serd_world_get_blank(SerdWorld* world)
void
serd_world_set_message_sink(SerdWorld* world,
- SerdMessageSink msg_sink,
+ SerdMessageFunc msg_func,
void* handle)
{
- world->msg_sink = msg_sink;
+ world->msg_func = msg_func;
world->msg_handle = handle;
}