aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/writer.c b/src/writer.c
index 5419e565..376becf1 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -961,14 +961,15 @@ terminate_context(SerdWriter* writer)
}
static SerdStatus
-serd_writer_write_statement(SerdWriter* const writer,
- const SerdStatementFlags flags,
- const SerdNode* const graph,
- const SerdNode* const subject,
- const SerdNode* const predicate,
- const SerdNode* const object)
+serd_writer_write_statement(SerdWriter* const writer,
+ const SerdStatementFlags flags,
+ const SerdStatement* const statement)
{
- SerdStatus st = SERD_SUCCESS;
+ SerdStatus st = SERD_SUCCESS;
+ const SerdNode* const subject = serd_statement_subject(statement);
+ const SerdNode* const predicate = serd_statement_predicate(statement);
+ const SerdNode* const object = serd_statement_object(statement);
+ const SerdNode* const graph = serd_statement_graph(statement);
if (!is_resource(subject) || !is_resource(predicate) || !object) {
return SERD_BAD_ARG;