diff options
author | David Robillard <d@drobilla.net> | 2006-07-26 18:53:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-26 18:53:15 +0000 |
commit | f988795439be205e96f71563b8de37b3eb399c55 (patch) | |
tree | a765305b545a7e93c7c49c0ee4a00b278b0d4d79 /src/port.c | |
parent | a15486a0151251ddc7805604a08580fa8279efaa (diff) | |
download | lilv-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.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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; } |