summaryrefslogtreecommitdiffstats
path: root/slv2/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'slv2/port.h')
-rw-r--r--slv2/port.h9
1 files changed, 6 insertions, 3 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);