diff options
Diffstat (limited to 'include/serd/sink.h')
-rw-r--r-- | include/serd/sink.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/serd/sink.h b/include/serd/sink.h index 291e8d3f..e34ce941 100644 --- a/include/serd/sink.h +++ b/include/serd/sink.h @@ -6,6 +6,7 @@ #include "serd/attributes.h" #include "serd/event.h" +#include "serd/memory.h" #include "serd/node.h" #include "serd/statement.h" #include "serd/status.h" @@ -65,14 +66,16 @@ typedef void (*SerdFreeFunc)(void* ZIX_NULLABLE ptr); /** Create a new sink. + @param allocator Allocator to use for the returned sink. @param handle Opaque handle that will be passed to sink functions. @param event_func Function that will be called for every event. @param free_handle Free function to call on handle in serd_sink_free(). */ SERD_API SerdSink* ZIX_ALLOCATED -serd_sink_new(void* ZIX_NULLABLE handle, - SerdEventFunc ZIX_NULLABLE event_func, - SerdFreeFunc ZIX_NULLABLE free_handle); +serd_sink_new(SerdAllocator* ZIX_NULLABLE allocator, + void* ZIX_NULLABLE handle, + SerdEventFunc ZIX_NULLABLE event_func, + SerdFreeFunc ZIX_NULLABLE free_handle); /// Free `sink` SERD_API void |