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 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/hosts/jack_host.c') 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); -- cgit v1.2.1