aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-23 07:44:29 +0000
committerDavid Robillard <d@drobilla.net>2011-01-23 07:44:29 +0000
commit983c964a11919f68f62d0a2193204789c27dc99c (patch)
treee15fb23b4ec7776f81504082a23f8c1d1896f9d5 /src/serdi.c
parentd7ebb11e67fe6456d89bac6d173c271398fa6d0e (diff)
downloadserd-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.c10
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);