summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-29 02:09:01 +0000
committerDavid Robillard <d@drobilla.net>2011-04-29 02:09:01 +0000
commit95ab9c9d236ecc524d98a6a08cd5bae9667265fb (patch)
tree7c22a10f056aab6c1e716059b2ce27cc6c625ad2 /utils
parentb4cd6dd752c8da20e61abd3774bf9302724a773f (diff)
downloadlilv-95ab9c9d236ecc524d98a6a08cd5bae9667265fb.tar.gz
lilv-95ab9c9d236ecc524d98a6a08cd5bae9667265fb.tar.bz2
lilv-95ab9c9d236ecc524d98a6a08cd5bae9667265fb.zip
Terser names for value constructors.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3223 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c14
-rw-r--r--utils/lv2_jack_host.c18
2 files changed, 16 insertions, 16 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 453f37f..b4a09d9 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -325,12 +325,12 @@ main(int argc, char** argv)
#define NS_PG "http://lv2plug.in/ns/ext/port-groups#"
#define NS_PSET "http://lv2plug.in/ns/ext/presets#"
- control_class = lilv_value_new_uri(world, LILV_PORT_CLASS_CONTROL);
- event_class = lilv_value_new_uri(world, LILV_PORT_CLASS_EVENT);
- in_group_pred = lilv_value_new_uri(world, NS_PG "inGroup");
- preset_pred = lilv_value_new_uri(world, NS_PSET "hasPreset");
- role_pred = lilv_value_new_uri(world, NS_PG "role");
- title_pred = lilv_value_new_uri(world, NS_DC "title");
+ control_class = lilv_new_uri(world, LILV_PORT_CLASS_CONTROL);
+ event_class = lilv_new_uri(world, LILV_PORT_CLASS_EVENT);
+ in_group_pred = lilv_new_uri(world, NS_PG "inGroup");
+ preset_pred = lilv_new_uri(world, NS_PSET "hasPreset");
+ role_pred = lilv_new_uri(world, NS_PG "role");
+ title_pred = lilv_new_uri(world, NS_DC "title");
if (argc != 2) {
print_usage();
@@ -353,7 +353,7 @@ main(int argc, char** argv)
}
const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
- LilvValue* uri = lilv_value_new_uri(world, argv[1]);
+ LilvValue* uri = lilv_new_uri(world, argv[1]);
const LilvPlugin* p = lilv_plugins_get_by_uri(plugins, uri);
diff --git a/utils/lv2_jack_host.c b/utils/lv2_jack_host.c
index 1bdfe61..24e1c1a 100644
--- a/utils/lv2_jack_host.c
+++ b/utils/lv2_jack_host.c
@@ -310,14 +310,14 @@ main(int argc, char** argv)
const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
/* Set up the port classes this app supports */
- host.input_class = lilv_value_new_uri(world, LILV_PORT_CLASS_INPUT);
- host.output_class = lilv_value_new_uri(world, LILV_PORT_CLASS_OUTPUT);
- host.control_class = lilv_value_new_uri(world, LILV_PORT_CLASS_CONTROL);
- host.audio_class = lilv_value_new_uri(world, LILV_PORT_CLASS_AUDIO);
- host.event_class = lilv_value_new_uri(world, LILV_PORT_CLASS_EVENT);
- host.midi_class = lilv_value_new_uri(world, LILV_EVENT_CLASS_MIDI);
- host.optional = lilv_value_new_uri(world, LILV_NAMESPACE_LV2
- "connectionOptional");
+ host.input_class = lilv_new_uri(world, LILV_PORT_CLASS_INPUT);
+ host.output_class = lilv_new_uri(world, LILV_PORT_CLASS_OUTPUT);
+ host.control_class = lilv_new_uri(world, LILV_PORT_CLASS_CONTROL);
+ host.audio_class = lilv_new_uri(world, LILV_PORT_CLASS_AUDIO);
+ host.event_class = lilv_new_uri(world, LILV_PORT_CLASS_EVENT);
+ host.midi_class = lilv_new_uri(world, LILV_EVENT_CLASS_MIDI);
+ host.optional = lilv_new_uri(world, LILV_NAMESPACE_LV2
+ "connectionOptional");
#ifdef LILV_JACK_SESSION
if (argc != 2 && argc != 3) {
@@ -334,7 +334,7 @@ main(int argc, char** argv)
printf("Plugin: %s\n", plugin_uri_str);
- LilvValue* plugin_uri = lilv_value_new_uri(world, plugin_uri_str);
+ LilvValue* plugin_uri = lilv_new_uri(world, plugin_uri_str);
host.plugin = lilv_plugins_get_by_uri(plugins, plugin_uri);
lilv_value_free(plugin_uri);