From 36c03b3f4e878f2a207cb08e80b06a1503568ed0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Feb 2011 01:11:21 +0000 Subject: Simpler and more typical node creation API. git-svn-id: http://svn.drobilla.net/sord/trunk@33 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sord.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sord/sord.h') 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); -- cgit v1.2.1