summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-26 18:53:15 +0000
committerDavid Robillard <d@drobilla.net>2006-07-26 18:53:15 +0000
commitf988795439be205e96f71563b8de37b3eb399c55 (patch)
treea765305b545a7e93c7c49c0ee4a00b278b0d4d79 /src/port.c
parenta15486a0151251ddc7805604a08580fa8279efaa (diff)
downloadlilv-f988795439be205e96f71563b8de37b3eb399c55.tar.gz
lilv-f988795439be205e96f71563b8de37b3eb399c55.tar.bz2
lilv-f988795439be205e96f71563b8de37b3eb399c55.zip
Removed vstrjoin
git-svn-id: http://svn.drobilla.net/lad/libslv2@105 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/port.c b/src/port.c
index 329e63c..db18ab8 100644
--- a/src/port.c
+++ b/src/port.c
@@ -79,17 +79,20 @@ slv2_port_get_property(SLV2Plugin* p,
rasqal_init();
- rasqal_query_results* results = slv2_plugin_run_query(p,
+ char* query = strjoin(
"SELECT DISTINCT ?value FROM data: WHERE { \n"
- "plugin: lv2:port ?port \n"
- "?port lv2:index ", index_str, " \n"
- "?port ", property, " ?value . \n}\n", NULL);
+ "plugin: lv2:port ?port . \n"
+ "?port lv2:index ", index_str, " . \n"
+ "?port ", property, " ?value . \n}\n", NULL);
+
+ rasqal_query_results* results = slv2_plugin_run_query(p, query);
SLV2Property result = slv2_query_get_results(results);
rasqal_free_query_results(results);
rasqal_finish();
-
+ free(query);
+
return result;
}