diff options
Diffstat (limited to 'include/serd/writer.h')
-rw-r--r-- | include/serd/writer.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/include/serd/writer.h b/include/serd/writer.h index 976ed5b7..94747309 100644 --- a/include/serd/writer.h +++ b/include/serd/writer.h @@ -13,7 +13,6 @@ #include "serd/stream.h" #include "serd/syntax.h" -#include <stddef.h> #include <stdint.h> SERD_BEGIN_DECLS @@ -48,11 +47,11 @@ typedef uint32_t SerdWriterFlags; /// Create a new RDF writer SERD_API SerdWriter* SERD_ALLOCATED -serd_writer_new(SerdSyntax syntax, - SerdWriterFlags flags, - SerdEnv* SERD_NONNULL env, - SerdSink SERD_NONNULL ssink, - void* SERD_NULLABLE stream); +serd_writer_new(SerdSyntax syntax, + SerdWriterFlags flags, + SerdEnv* SERD_NONNULL env, + SerdWriteFunc SERD_NONNULL ssink, + void* SERD_NULLABLE stream); /// Free `writer` SERD_API void @@ -63,17 +62,6 @@ SERD_PURE_API SerdEnv* SERD_NONNULL serd_writer_env(SerdWriter* SERD_NONNULL writer); /** - A convenience sink function for writing to a FILE*. - - This function can be used as a #SerdSink when writing to a FILE*. The - `stream` parameter must be a FILE* opened for writing. -*/ -SERD_API size_t -serd_file_sink(const void* SERD_NONNULL buf, - size_t len, - void* SERD_NONNULL stream); - -/** Set a function to be called when errors occur during writing. The `error_func` will be called with `handle` as its first argument. If |