summaryrefslogtreecommitdiffstats
path: root/slv2/port.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-26 03:25:08 +0000
committerDavid Robillard <d@drobilla.net>2006-07-26 03:25:08 +0000
commit2cd84e4209633e59439c445f821bed8410347bab (patch)
treeba34505505795cff5cf35c2958ed21933b822e12 /slv2/port.h
parentdeca2cc89850dffc051d0a0aafc9d681af838934 (diff)
downloadlilv-2cd84e4209633e59439c445f821bed8410347bab.tar.gz
lilv-2cd84e4209633e59439c445f821bed8410347bab.tar.bz2
lilv-2cd84e4209633e59439c445f821bed8410347bab.zip
- Removed all the unsigned char garbage from the API
- Updated types in lv2.h to be non-machine-dependant (removed unsigned long in favour of uint32_t) - Updated schema - Updated example plugin to work with the above (partially) git-svn-id: http://svn.drobilla.net/lad/libslv2@101 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/port.h')
-rw-r--r--slv2/port.h33
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);
/** @} */