summaryrefslogtreecommitdiffstats
path: root/slv2/port.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-19 16:49:25 +0000
committerDavid Robillard <d@drobilla.net>2007-04-19 16:49:25 +0000
commit98ea88b5fd404ff4ba43709f731ba074f291eb5b (patch)
tree1318604ebfedd677ac8f6cbad3f9d58e5922a1c4 /slv2/port.h
parent6626f77037747855e7dcec64697d436c4300d7c2 (diff)
downloadlilv-98ea88b5fd404ff4ba43709f731ba074f291eb5b.tar.gz
lilv-98ea88b5fd404ff4ba43709f731ba074f291eb5b.tar.bz2
lilv-98ea88b5fd404ff4ba43709f731ba074f291eb5b.zip
Added Redland dependency, using in-memory RDF models.
Numerous significant performance improvements. git-svn-id: http://svn.drobilla.net/lad/slv2@457 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/port.h')
-rw-r--r--slv2/port.h35
1 files changed, 12 insertions, 23 deletions
diff --git a/slv2/port.h b/slv2/port.h
index 546a713..13ac5c1 100644
--- a/slv2/port.h
+++ b/slv2/port.h
@@ -25,6 +25,7 @@ extern "C" {
#include <slv2/types.h>
#include <slv2/plugin.h>
+#include <slv2/port.h>
#include <slv2/stringlist.h>
/** \addtogroup data
@@ -32,38 +33,26 @@ extern "C" {
*/
-/** Create an ID to reference a port by index.
- */
-SLV2PortID
-slv2_port_by_index(uint32_t index);
-
-
-/** Create an ID to reference a port by symbol.
- */
-SLV2PortID
-slv2_port_by_symbol(const char* symbol);
-
-
/** Port equivalent to slv2_plugin_get_value.
*/
SLV2Strings
slv2_port_get_value(SLV2Plugin plugin,
- SLV2PortID id,
+ SLV2Port port,
const char* property);
/** Port equivalent to slv2_plugin_get_properties.
*/
SLV2Strings
-slv2_port_get_properties(SLV2Plugin p,
- SLV2PortID id);
+slv2_port_get_properties(SLV2Plugin plugin,
+ SLV2Port port);
/** Port equivalent to slv2_plugin_get_hints.
*/
SLV2Strings
-slv2_port_get_hints(SLV2Plugin p,
- SLV2PortID id);
+slv2_port_get_hints(SLV2Plugin plugin,
+ SLV2Port port);
/** Get the symbol of a port given the index.
@@ -75,7 +64,7 @@ slv2_port_get_hints(SLV2Plugin p,
*/
char*
slv2_port_get_symbol(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** Get the name of a port.
*
@@ -85,14 +74,14 @@ slv2_port_get_symbol(SLV2Plugin plugin,
*/
char*
slv2_port_get_name(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** Get the class (input/output, data type, rate...) of a port.
*/
SLV2PortClass
slv2_port_get_class(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** Get the default value of a port.
@@ -101,7 +90,7 @@ slv2_port_get_class(SLV2Plugin plugin,
*/
float
slv2_port_get_default_value(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** Get the minimum value of a port.
@@ -110,7 +99,7 @@ slv2_port_get_default_value(SLV2Plugin plugin,
*/
float
slv2_port_get_minimum_value(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** Get the maximum value of a port.
@@ -119,7 +108,7 @@ slv2_port_get_minimum_value(SLV2Plugin plugin,
*/
float
slv2_port_get_maximum_value(SLV2Plugin plugin,
- SLV2PortID id);
+ SLV2Port port);
/** @} */