diff options
Diffstat (limited to 'slv2/port.h')
-rw-r--r-- | slv2/port.h | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/slv2/port.h b/slv2/port.h index 601aa49..ee51507 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -31,27 +31,14 @@ extern "C" { */ -/** A port on a plugin. - * - * The information necessary to use the port is stored here, any extra - * information can be queried with slv2port_get_property. - */ -/*struct LV2Port { - unsigned long index; ///< Index in ports array - char* short_name; ///< Guaranteed unique identifier - char* type; ///< eg. lv2:InputControlPort - char* data_type; ///< eg. lv2:float -};*/ - - /** Get a property of a port, by port index. * * Return value must be freed by caller with slv2_property_free. */ SLV2Property slv2_port_get_property(SLV2Plugin* plugin, - unsigned long index, - const uchar* property); + uint32_t index, + const char* property); /** Get the symbol of a port given the index. @@ -61,16 +48,16 @@ slv2_port_get_property(SLV2Plugin* plugin, * * \return NULL when index is out of range */ -uchar* +char* slv2_port_get_symbol(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** Get the class (direction and rate) of a port. */ enum SLV2PortClass slv2_port_get_class(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** Get the data type of a port (as a URI). @@ -78,9 +65,9 @@ slv2_port_get_class(SLV2Plugin* plugin, * 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. */ -uchar* +char* slv2_port_get_data_type(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** Get the default value of a port. @@ -89,7 +76,7 @@ slv2_port_get_data_type(SLV2Plugin* plugin, */ float slv2_port_get_default_value(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** Get the minimum value of a port. @@ -98,7 +85,7 @@ slv2_port_get_default_value(SLV2Plugin* plugin, */ float slv2_port_get_minimum_value(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** Get the maximum value of a port. @@ -107,7 +94,7 @@ slv2_port_get_minimum_value(SLV2Plugin* plugin, */ float slv2_port_get_maximum_value(SLV2Plugin* plugin, - unsigned long index); + uint32_t index); /** @} */ |