From 95ab9c9d236ecc524d98a6a08cd5bae9667265fb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Apr 2011 02:09:01 +0000 Subject: Terser names for value constructors. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3223 a436a847-0d15-0410-975c-d299462d15a1 --- lilv/lilv.h | 17 +++++++++-------- lilv/lilvmm.hpp | 10 +++++----- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'lilv') diff --git a/lilv/lilv.h b/lilv/lilv.h index ce0729d..a6b2297 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -103,7 +103,7 @@ lilv_uri_to_path(const char* uri); */ LILV_API LilvValue* -lilv_value_new_uri(LilvWorld* world, const char* uri); +lilv_new_uri(LilvWorld* world, const char* uri); /** Create a new string value (with no language). @@ -111,7 +111,7 @@ lilv_value_new_uri(LilvWorld* world, const char* uri); */ LILV_API LilvValue* -lilv_value_new_string(LilvWorld* world, const char* str); +lilv_new_string(LilvWorld* world, const char* str); /** Create a new integer value. @@ -119,7 +119,7 @@ lilv_value_new_string(LilvWorld* world, const char* str); */ LILV_API LilvValue* -lilv_value_new_int(LilvWorld* world, int val); +lilv_new_int(LilvWorld* world, int val); /** Create a new floating point value. @@ -127,7 +127,7 @@ lilv_value_new_int(LilvWorld* world, int val); */ LILV_API LilvValue* -lilv_value_new_float(LilvWorld* world, float val); +lilv_new_float(LilvWorld* world, float val); /** Create a new boolean value. @@ -135,7 +135,7 @@ lilv_value_new_float(LilvWorld* world, float val); */ LILV_API LilvValue* -lilv_value_new_bool(LilvWorld* world, bool val); +lilv_new_bool(LilvWorld* world, bool val); /** Free an LilvValue. @@ -1009,10 +1009,11 @@ lilv_port_is_a(const LilvPlugin* plugin, /** Get the default, minimum, and maximum values of a port. + @a def, @a min, and @a max are outputs, pass pointers to uninitialized - (i.e. NOT created with lilv_value_new) LilvValue variables. These will - be set to point at new values (which must be freed by the caller using - lilv_value_free), or NULL if the value does not exist. + LilvValue* variables. These will be set to point at new values (which must + be freed by the caller using lilv_value_free), or NULL if the value does not + exist. */ LILV_API void diff --git a/lilv/lilvmm.hpp b/lilv/lilvmm.hpp index 66a0276..3c2189a 100644 --- a/lilv/lilvmm.hpp +++ b/lilv/lilvmm.hpp @@ -130,19 +130,19 @@ struct World { inline ~World() { /*lilv_world_free(me);*/ } inline LilvValue* new_uri(const char* uri) { - return lilv_value_new_uri(me, uri); + return lilv_new_uri(me, uri); } inline LilvValue* new_string(const char* str) { - return lilv_value_new_string(me, str); + return lilv_new_string(me, str); } inline LilvValue* new_int(int val) { - return lilv_value_new_int(me, val); + return lilv_new_int(me, val); } inline LilvValue* new_float(float val) { - return lilv_value_new_float(me, val); + return lilv_new_float(me, val); } inline LilvValue* new_bool(bool val) { - return lilv_value_new_bool(me, val); + return lilv_new_bool(me, val); } LILV_WRAP2_VOID(world, set_option, const char*, uri, LilvValue*, value); -- cgit v1.2.1