diff options
author | David Robillard <d@drobilla.net> | 2011-05-12 01:09:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-12 01:09:13 +0000 |
commit | b1992a03139b64e718eeaf87686cce8c7c9134d1 (patch) | |
tree | 528e92ac8a637e38f21fb07c665dc521b3d98826 /sord | |
parent | 3feaad1a898d40e54f3ef7e076a05dd960eefefa (diff) | |
download | sord-b1992a03139b64e718eeaf87686cce8c7c9134d1.tar.gz sord-b1992a03139b64e718eeaf87686cce8c7c9134d1.tar.bz2 sord-b1992a03139b64e718eeaf87686cce8c7c9134d1.zip |
Abbreviate inline blank node objects.
git-svn-id: http://svn.drobilla.net/sord/trunk@109 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-rw-r--r-- | sord/sord.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sord/sord.h b/sord/sord.h index 8174f55..29e4299 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -272,6 +272,17 @@ 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. Note this is much faster than comparing the node's strings. |