diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 19:24:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 40534e6c42daabb6cc8ec2d49785bec088d1d3a8 (patch) | |
tree | 593e37de3e9bce98e291ec098a7081e6e26240b0 /src/writer.c | |
parent | 38f85ad8c53c618033e3d0b7cb1fe782c38cf0a3 (diff) | |
download | serd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.tar.gz serd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.tar.bz2 serd-40534e6c42daabb6cc8ec2d49785bec088d1d3a8.zip |
Add SerdStatement
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 15 |
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; |