aboutsummaryrefslogtreecommitdiffstats
path: root/src/sink.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Replace multiple stream callbacks with SerdEventDavid Robillard1-22/+33
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future.
2020-10-27Add function to SerdSink for freeing opaque handleDavid Robillard1-3/+11
This can be used to associate dynamically allocated data with a sink and have it managed along with the sink's lifetime.
2020-10-27Use consistent naming for function typesDavid Robillard1-4/+4
2020-10-27Make SerdSink opaqueDavid Robillard1-8/+54
2020-10-27Add cursor to statementDavid Robillard1-1/+4
This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser.
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard1-8/+5
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-10-27Add sink interfaceDavid Robillard1-0/+62
2011-12-12Make bulk writer internal and inlinable to avoid function call overhead in ↵David Robillard1-83/+0
the writer. git-svn-id: http://svn.drobilla.net/serd/trunk@254 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Move all #ifdef gunk to serd_internal.h.David Robillard1-9/+2
Centralise file open and buffer allocation to localize platform tweaks. git-svn-id: http://svn.drobilla.net/serd/trunk@244 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Add SerdBulkSink for writing bulk output and corresponding serdi -B option.David Robillard1-0/+90
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0