From b122168527db12971d53697cf384e8ad12821a7d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Apr 2012 23:47:14 +0000 Subject: Use URI defines from LV2 headers where possible. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4175 a436a847-0d15-0410-975c-d299462d15a1 --- utils/lv2info.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'utils') diff --git a/utils/lv2info.c b/utils/lv2info.c index fd71b10..c978124 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -20,6 +20,10 @@ #include #include +#include "lv2/lv2plug.in/ns/ext/port-groups/port-groups.h" +#include "lv2/lv2plug.in/ns/ext/presets/presets.h" +#include "lv2/lv2plug.in/ns/ext/event/event.h" + #include "lilv/lilv.h" #include "lilv_config.h" @@ -387,18 +391,14 @@ main(int argc, char** argv) LilvWorld* world = lilv_world_new(); lilv_world_load_all(world); -#define NS_PG "http://lv2plug.in/ns/ext/port-groups#" -#define NS_PSET "http://lv2plug.in/ns/ext/presets#" -#define NS_EV "http://lv2plug.in/ns/ext/event#" - - applies_to_pred = lilv_new_uri(world, LILV_NS_LV2 "appliesTo"); + applies_to_pred = lilv_new_uri(world, LV2_CORE__appliesTo); control_class = lilv_new_uri(world, LILV_URI_CONTROL_PORT); event_class = lilv_new_uri(world, LILV_URI_EVENT_PORT); - group_pred = lilv_new_uri(world, NS_PG "group"); + group_pred = lilv_new_uri(world, LV2_PORT_GROUPS__group); label_pred = lilv_new_uri(world, LILV_NS_RDFS "label"); - preset_class = lilv_new_uri(world, NS_PSET "Preset"); - designation_pred = lilv_new_uri(world, LILV_NS_LV2 "designation"); - supports_event_pred = lilv_new_uri(world, NS_EV "supportsEvent"); + preset_class = lilv_new_uri(world, LV2_PRESETS__Preset); + designation_pred = lilv_new_uri(world, LV2_CORE__designation); + supports_event_pred = lilv_new_uri(world, LV2_EVENT__supportsEvent); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); LilvNode* uri = lilv_new_uri(world, plugin_uri); -- cgit v1.2.1