From deca2cc89850dffc051d0a0aafc9d681af838934 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Jul 2006 19:19:05 +0000 Subject: Removed data type enumeration in favour of using the URI directly git-svn-id: http://svn.drobilla.net/lad/libslv2@100 a436a847-0d15-0410-975c-d299462d15a1 --- examples/hosts/jack_host.c | 7 ++++--- examples/hosts/test_host.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'examples/hosts') diff --git a/examples/hosts/jack_host.c b/examples/hosts/jack_host.c index 2247e03..1be62b8 100644 --- a/examples/hosts/jack_host.c +++ b/examples/hosts/jack_host.c @@ -149,10 +149,11 @@ create_port(struct JackHost* host, unsigned long port_index) { /* Make sure this is a float port */ - enum SLV2DataType type = slv2_port_get_data_type(host->plugin, port_index); - if (type != SLV2_DATA_TYPE_FLOAT) + uchar* type = slv2_port_get_data_type(host->plugin, port_index); + if (strcmp(type, SLV2_DATA_TYPE_FLOAT)) die("Unrecognized data type, aborting."); - + free(type); + /* Get the port symbol (label) for console printing */ char* symbol = slv2_port_get_symbol(host->plugin, port_index); diff --git a/examples/hosts/test_host.c b/examples/hosts/test_host.c index 3ec8d86..16efa11 100644 --- a/examples/hosts/test_host.c +++ b/examples/hosts/test_host.c @@ -61,7 +61,7 @@ create_audio_output() void create_port(SLV2Plugin* plugin, SLV2Instance* instance, - unsigned long port_index) + unsigned long port_index) { enum SLV2PortClass class = slv2_port_get_class(plugin, port_index); -- cgit v1.2.1