diff options
author | David Robillard <d@drobilla.net> | 2011-02-16 01:11:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-16 01:11:21 +0000 |
commit | 36c03b3f4e878f2a207cb08e80b06a1503568ed0 (patch) | |
tree | bfcbdd91720610605d246f8ba5680cb7c35202ef /sord | |
parent | 577ff8d97411f7cbd6b923a76a936dc81e7e18cc (diff) | |
download | sord-36c03b3f4e878f2a207cb08e80b06a1503568ed0.tar.gz sord-36c03b3f4e878f2a207cb08e80b06a1503568ed0.tar.bz2 sord-36c03b3f4e878f2a207cb08e80b06a1503568ed0.zip |
Simpler and more typical node creation API.
git-svn-id: http://svn.drobilla.net/sord/trunk@33 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-rw-r--r-- | sord/sord.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sord/sord.h b/sord/sord.h index a2fbefe..3412afa 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -118,37 +118,37 @@ sord_free(Sord sord); */ SORD_API SordNode -sord_get_uri(Sord sord, bool create, const uint8_t* str); +sord_new_uri(Sord sord, const uint8_t* str); /** Find a URI, creating a new one if necessary iff @a create is true. */ SORD_API SordNode -sord_get_uri_counted(Sord sord, bool create, const uint8_t* str, int str_len); +sord_new_uri_counted(Sord sord, const uint8_t* str, int str_len); /** Find a blank, creating a new one if necessary iff @a create is true * Use sord_get_blank_counted instead if the length of @a str is known. */ SORD_API SordNode -sord_get_blank(Sord sord, bool create, const uint8_t* str); +sord_new_blank(Sord sord, const uint8_t* str); /** Find a blank, creating a new one if necessary iff @a create is true. */ SORD_API SordNode -sord_get_blank_counted(Sord sord, bool create, const uint8_t* str, int str_len); +sord_new_blank_counted(Sord sord, const uint8_t* str, int str_len); /** Find a literal, creating a new one if necessary iff @a create is true. * Use sord_get_literal_counted instead if the length of @a str is known. */ SORD_API SordNode -sord_get_literal(Sord sord, bool create, SordNode type, +sord_new_literal(Sord sord, SordNode datatype, const uint8_t* str, const char* lang); /** Find a literal, creating a new one if necessary iff @a create is true. */ SORD_API SordNode -sord_get_literal_counted(Sord sord, bool create, SordNode type, +sord_new_literal_counted(Sord sord, SordNode datatype, const uint8_t* str, int str_len, const char* lang, uint8_t lang_len); |