diff options
author | David Robillard <d@drobilla.net> | 2006-07-22 19:19:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-22 19:19:05 +0000 |
commit | deca2cc89850dffc051d0a0aafc9d681af838934 (patch) | |
tree | cfca762a3b03289385bb40c17673b4483142c420 /slv2 | |
parent | c7153b1a3d607108bab6cd8d6719977ffb213092 (diff) | |
download | lilv-deca2cc89850dffc051d0a0aafc9d681af838934.tar.gz lilv-deca2cc89850dffc051d0a0aafc9d681af838934.tar.bz2 lilv-deca2cc89850dffc051d0a0aafc9d681af838934.zip |
Removed data type enumeration in favour of using the URI directly
git-svn-id: http://svn.drobilla.net/lad/libslv2@100 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/port.h | 9 | ||||
-rw-r--r-- | slv2/query.h | 5 | ||||
-rw-r--r-- | slv2/types.h | 7 |
3 files changed, 12 insertions, 9 deletions
diff --git a/slv2/port.h b/slv2/port.h index 749ea4e..601aa49 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -46,7 +46,7 @@ extern "C" { /** Get a property of a port, by port index. * - * Return value must be free()'d by caller. + * Return value must be freed by caller with slv2_property_free. */ SLV2Property slv2_port_get_property(SLV2Plugin* plugin, @@ -73,9 +73,12 @@ slv2_port_get_class(SLV2Plugin* plugin, unsigned long index); -/** Get the data type of a port. +/** Get the data type of a port (as a URI). + * + * The only data type included in the core LV2 specification is lv2:float. + * Compare this return value with @ref SLV2_DATA_TYPE_FLOAT to check for it. */ -enum SLV2DataType +uchar* slv2_port_get_data_type(SLV2Plugin* plugin, unsigned long index); diff --git a/slv2/query.h b/slv2/query.h index f1708d7..79e7301 100644 --- a/slv2/query.h +++ b/slv2/query.h @@ -87,10 +87,13 @@ rasqal_query_results* slv2_plugin_run_query(const SLV2Plugin* p, const uchar* query_string, ...); - SLV2Property slv2_query_get_results(rasqal_query_results* results); +/** Free an SLV2Property. */ +void +slv2_property_free(SLV2Property); + /** @} */ diff --git a/slv2/types.h b/slv2/types.h index b6d71cc..79b1e0f 100644 --- a/slv2/types.h +++ b/slv2/types.h @@ -51,11 +51,8 @@ enum SLV2PortClass { }; -/** Type contained in a port buffer. */ -enum SLV2DataType { - SLV2_DATA_TYPE_FLOAT, /**< IEEE-754 32-bit floating point number */ - SLV2_UNKNOWN_DATA_TYPE -}; +/** lv2:float, IEEE-754 32-bit floating point number */ +#define SLV2_DATA_TYPE_FLOAT "http://lv2plug.in/ontology#float" #ifdef __cplusplus |