summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
Diffstat (limited to 'slv2')
-rw-r--r--slv2/port.h9
-rw-r--r--slv2/query.h5
-rw-r--r--slv2/types.h7
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