diff options
author | David Robillard <d@drobilla.net> | 2007-02-09 19:19:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-09 19:19:31 +0000 |
commit | 07c3b4ce3ed385368147bd4f2e058f83d9064b0d (patch) | |
tree | 2a6ca2cba56875ab9d13679c6fcc25aa7d5676b1 | |
parent | 984193c0f86ac3c413bc2646c2601fa9ba49f9af (diff) | |
download | lilv-07c3b4ce3ed385368147bd4f2e058f83d9064b0d.tar.gz lilv-07c3b4ce3ed385368147bd4f2e058f83d9064b0d.tar.bz2 lilv-07c3b4ce3ed385368147bd4f2e058f83d9064b0d.zip |
Removed data type stuff from SLV2.
Reworked event system in FlowCanvas to use signals.
Added straight connections and arrowheads to FlowCanvas, Ellipse fixes.
git-svn-id: http://svn.drobilla.net/lad/slv2@293 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | hosts/lv2_jack_host.c | 3 | ||||
-rw-r--r-- | slv2/port.h | 14 | ||||
-rw-r--r-- | src/port.c | 17 |
3 files changed, 1 insertions, 33 deletions
diff --git a/hosts/lv2_jack_host.c b/hosts/lv2_jack_host.c index 638c420..6f72449 100644 --- a/hosts/lv2_jack_host.c +++ b/hosts/lv2_jack_host.c @@ -181,8 +181,6 @@ create_port(struct JackHost* host, slv2_instance_connect_port(host->instance, port_index, NULL); - char* type_str = slv2_port_get_data_type(host->plugin, port->id); - /* Get the port symbol (label) for console printing */ char* symbol = slv2_port_get_symbol(host->plugin, port->id); @@ -224,7 +222,6 @@ create_port(struct JackHost* host, } free(symbol); - free(type_str); } diff --git a/slv2/port.h b/slv2/port.h index 7b1d98a..5c29774 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -87,25 +87,13 @@ slv2_port_get_name(SLV2Plugin* plugin, SLV2PortID id); -/** Get the class (direction and rate) of a port. +/** Get the class (input/output, data type, rate...) of a port. */ SLV2PortClass slv2_port_get_class(SLV2Plugin* plugin, SLV2PortID id); -/** 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 SLV2_DATA_TYPE_FLOAT to check for it. - * - * Returned string must be free()'d by caller. - */ -char* -slv2_port_get_data_type(SLV2Plugin* plugin, - SLV2PortID id); - - /** Get the default value of a port. * * Only valid for ports with a data type of lv2:float. @@ -98,23 +98,6 @@ slv2_port_get_class(SLV2Plugin* p, } -char* -slv2_port_get_data_type(SLV2Plugin* p, - SLV2PortID id) -{ - SLV2Value type = slv2_port_get_value(p, id, "lv2:datatype"); - assert(type); - assert(type->num_values == 1); - assert(type->values); - - char* ret = type->values[0]; - type->values[0] = NULL; // prevent deletion - - slv2_value_free(type); - return ret; -} - - SLV2Value slv2_port_get_value(SLV2Plugin* p, SLV2PortID id, |