diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 18:35:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 18:35:52 +0000 |
commit | d596bb4bedbf9ff267cfe924bb4d376213efd3ec (patch) | |
tree | eff0daa07315d145dfac19b1e6c17416019c0de8 /src/plugin.c | |
parent | 09bf0ca18301b9ef7a4360be35d2d1921a0d28d8 (diff) | |
download | lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.gz lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.bz2 lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.zip |
Updated LV2 spec.
git-svn-id: http://svn.drobilla.net/lad/slv2@809 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/plugin.c b/src/plugin.c index 055d727..20c8c5f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -498,9 +498,9 @@ slv2_plugin_get_supported_features(SLV2Plugin p) { const char* const query = "SELECT DISTINCT ?feature WHERE {\n" - " { <> lv2:optionalHostFeature ?feature }\n" - " UNION\n" - " { <> lv2:requiredHostFeature ?feature }\n" + " { <> lv2:optionalFeature ?feature }\n" + " UNION\n" + " { <> lv2:requiredFeature ?feature }\n" "}\n"; SLV2Values result = slv2_plugin_simple_query(p, query, 0); @@ -512,28 +512,14 @@ slv2_plugin_get_supported_features(SLV2Plugin p) SLV2Values slv2_plugin_get_optional_features(SLV2Plugin p) { - const char* const query = - "SELECT DISTINCT ?feature WHERE {\n" - " <> lv2:optionalHostFeature ?feature\n" - "}\n"; - - SLV2Values result = slv2_plugin_simple_query(p, query, 0); - - return result; + return slv2_plugin_get_value(p, SLV2_QNAME, "lv2:optionalFeature"); } SLV2Values slv2_plugin_get_required_features(SLV2Plugin p) { - const char* const query = - "SELECT DISTINCT ?feature WHERE {\n" - " <> lv2:requiredHostFeature ?feature\n" - "}\n"; - - SLV2Values result = slv2_plugin_simple_query(p, query, 0); - - return result; + return slv2_plugin_get_value(p, SLV2_QNAME, "lv2:requiredFeature"); } |