From b1992a03139b64e718eeaf87686cce8c7c9134d1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 May 2011 01:09:13 +0000 Subject: Abbreviate inline blank node objects. git-svn-id: http://svn.drobilla.net/sord/trunk@109 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sord.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sord') diff --git a/sord/sord.h b/sord/sord.h index 8174f55..29e4299 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -271,6 +271,17 @@ SORD_API SerdNodeFlags sord_node_get_flags(const SordNode* node); +/** + Return true iff node can be serialised as an inline object. + + More specifically, this returns true iff the node is the object field + of exactly one statement, and therefore can be inlined since it needn't + be referred to by name. +*/ +SORD_API +bool +sord_node_is_inline_object(const SordNode* node); + /** Return true iff @c a is equal to @c b. -- cgit v1.2.1