diff options
author | David Robillard <d@drobilla.net> | 2011-01-23 07:44:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-23 07:44:29 +0000 |
commit | 983c964a11919f68f62d0a2193204789c27dc99c (patch) | |
tree | e15fb23b4ec7776f81504082a23f8c1d1896f9d5 /src/serdi.c | |
parent | d7ebb11e67fe6456d89bac6d173c271398fa6d0e (diff) | |
download | serd-983c964a11919f68f62d0a2193204789c27dc99c.tar.gz serd-983c964a11919f68f62d0a2193204789c27dc99c.tar.bz2 serd-983c964a11919f68f62d0a2193204789c27dc99c.zip |
Streaming abbreviation.
git-svn-id: http://svn.drobilla.net/serd/trunk@41 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r-- | src/serdi.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c index 73653792..2aa0a08e 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -115,6 +115,14 @@ event_statement(void* handle, object, object_type, object_datatype, object_lang); } +static bool +event_end(void* handle, + const SerdString* subject) +{ + State* const state = (State*)handle; + return serd_writer_end_anon(state->writer, subject); +} + int print_usage(const char* name, bool error) { @@ -218,7 +226,7 @@ main(int argc, char** argv) }; SerdReader reader = serd_reader_new( - SERD_TURTLE, &state, event_base, event_prefix, event_statement); + SERD_TURTLE, &state, event_base, event_prefix, event_statement, event_end); const bool success = serd_reader_read_file(reader, in_fd, in_filename); serd_reader_free(reader); |