From 043e683a796e1338a8874b0e7c195292ff32b7de Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 23 Jul 2007 06:03:39 +0000 Subject: Broke API to separate input/output from type (less code repetition and SLV2 is more useful with unknown extended port types this way). Switched enum symbol naming scheme to be more typical and future proof. Added LV2 OSC support. git-svn-id: http://svn.drobilla.net/lad/slv2@600 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/port.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'slv2/port.h') diff --git a/slv2/port.h b/slv2/port.h index db1c308..08c1e45 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -60,6 +60,16 @@ SLV2Values slv2_port_get_hints(SLV2Plugin plugin, SLV2Port port); +#if 0 +/** Return whether a port has a certain hint. + * + * Time = Query + */ +bool +slv2_port_has_hint(SLV2Plugin p, + SLV2Port port, + SLV2Value hint) +#endif /** Get the symbol of a port given the index. * @@ -87,13 +97,21 @@ slv2_port_get_name(SLV2Plugin plugin, SLV2Port port); -/** Get the class (input/output, data type, rate...) of a port. +/** Get the direction (input, output) of a port. * * Time = Query */ -SLV2PortClass -slv2_port_get_class(SLV2Plugin plugin, - SLV2Port port); +SLV2PortDirection +slv2_port_get_direction(SLV2Plugin plugin, + SLV2Port port); + +/** Get the (data) type of a port. + * + * Time = Query + */ +SLV2PortType +slv2_port_get_type(SLV2Plugin plugin, + SLV2Port port); /** Get the default value of a port. -- cgit v1.2.1