From 9547c806dbf76d6afd1e324fc924abdf944c4bda Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Aug 2021 20:00:43 -0400 Subject: Add a close function to SerdByteSink This simplifies everything by replacing special cases with a more general close function. A type is no longer stored in the structure, so the other constructors are now essentially syntactic sugar for the universal serd_byte_sink_new_function(). --- test/test_byte_sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_byte_sink.c') diff --git a/test/test_byte_sink.c b/test/test_byte_sink.c index 1982a436..71f1e62d 100644 --- a/test/test_byte_sink.c +++ b/test/test_byte_sink.c @@ -26,7 +26,7 @@ main(void) { assert(!serd_byte_sink_new_filename("file.ttl", 0)); assert(!serd_byte_sink_new_filename("/does/not/exist.ttl", 1)); - assert(!serd_byte_sink_new_function((SerdWriteFunc)fwrite, NULL, 0)); + assert(!serd_byte_sink_new_function((SerdWriteFunc)fwrite, NULL, NULL, 0)); return 0; } -- cgit v1.2.1