diff options
author | David Robillard <d@drobilla.net> | 2013-02-18 17:48:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-18 17:48:58 +0000 |
commit | 131f6f4456a639fed721df603f0e0c722adc8e91 (patch) | |
tree | 0201fda485055a90cdf1c89c8d0e8c551dd13b6c /sord/sord.h | |
parent | 1f7c6726ab0ed34bdb4b25884b396563fab05b99 (diff) | |
download | sord-131f6f4456a639fed721df603f0e0c722adc8e91.tar.gz sord-131f6f4456a639fed721df603f0e0c722adc8e91.tar.bz2 sord-131f6f4456a639fed721df603f0e0c722adc8e91.zip |
Fix reference counting semantics of sord_get().
git-svn-id: http://svn.drobilla.net/sord/trunk@286 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord/sord.h')
-rw-r--r-- | sord/sord.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sord/sord.h b/sord/sord.h index 04ea676..2269d13 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -401,10 +401,11 @@ sord_search(SordModel* model, Search for a single node that matches a pattern. Exactly one of @p s, @p p, @p o must be NULL. This function is mainly useful for predicates that only have one value. + The returned node must be freed using sord_node_free. @return the first matching node, or NULL if no matches are found. */ SORD_API -const SordNode* +SordNode* sord_get(SordModel* model, const SordNode* s, const SordNode* p, |