summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-12 01:09:13 +0000
committerDavid Robillard <d@drobilla.net>2011-05-12 01:09:13 +0000
commitb1992a03139b64e718eeaf87686cce8c7c9134d1 (patch)
tree528e92ac8a637e38f21fb07c665dc521b3d98826 /sord
parent3feaad1a898d40e54f3ef7e076a05dd960eefefa (diff)
downloadsord-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.h11
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.