diff options
author | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
commit | 6f4460aee9962a49ae872eef42ba75a439ea6e59 (patch) | |
tree | dd08af14a835d0d6f77aa6a3c4c9047ceb4b307f /src/plugins.c | |
parent | 361f21b9e1f59bd602d0e1ed8b80f726605995be (diff) | |
download | lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.gz lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.bz2 lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.zip |
Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible.
Make 'index' a fundemental property of ingen ports.
git-svn-id: http://svn.drobilla.net/lad/slv2@1113 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugins.c')
-rw-r--r-- | src/plugins.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins.c b/src/plugins.c index ac8b863..f1774e8 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -69,7 +69,7 @@ slv2_plugins_size(SLV2Plugins list) SLV2Plugin -slv2_plugins_get_by_uri(SLV2Plugins list, const char* uri) +slv2_plugins_get_by_uri(SLV2Plugins list, SLV2Value uri) { // good old fashioned binary search @@ -82,7 +82,8 @@ slv2_plugins_get_by_uri(SLV2Plugins list, const char* uri) SLV2Plugin p = raptor_sequence_get_at(list, i); - const int cmp = strcmp(slv2_plugin_get_uri(p), uri); + const int cmp = strcmp(slv2_value_as_uri(slv2_plugin_get_uri(p)), + slv2_value_as_uri(uri)); if (cmp == 0) return p; |