From 4de972d203f804dd5b1ae5c82ca01359f7d285a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Apr 2019 20:21:40 +0200 Subject: WIP: Remove SerdMessage --- tests/model_test.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/model_test.c b/tests/model_test.c index 60dc4579..9a4cd906 100644 --- a/tests/model_test.c +++ b/tests/model_test.c @@ -276,22 +276,38 @@ test_read(SerdWorld* world, } static SerdStatus -unexpected_error(void* handle, const SerdMessage* msg) +unexpected_error(void* handle, + SerdStatus status, + SerdLogLevel level, + const SerdCursor* cursor, + const char* fmt, + va_list args) { (void)handle; + (void)status; + (void)level; + (void)cursor; fprintf(stderr, "error: "); - vfprintf(stderr, msg->fmt, *msg->args); + vfprintf(stderr, fmt, args); return SERD_SUCCESS; } static SerdStatus -expected_error(void* handle, const SerdMessage* msg) +expected_error(void* handle, + SerdStatus status, + SerdLogLevel level, + const SerdCursor* cursor, + const char* fmt, + va_list args) { (void)handle; + (void)status; + (void)level; + (void)cursor; fprintf(stderr, "expected: "); - vfprintf(stderr, msg->fmt, *msg->args); + vfprintf(stderr, fmt, args); return SERD_SUCCESS; } -- cgit v1.2.1