summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-12 23:47:14 +0000
committerDavid Robillard <d@drobilla.net>2012-04-12 23:47:14 +0000
commitb122168527db12971d53697cf384e8ad12821a7d (patch)
treed9d3094b5205e027358702c4112e3bd1dde25cd6 /utils
parent538e4694d2d35c808a57937a5f3bec67b299f60f (diff)
downloadlilv-b122168527db12971d53697cf384e8ad12821a7d.tar.gz
lilv-b122168527db12971d53697cf384e8ad12821a7d.tar.bz2
lilv-b122168527db12971d53697cf384e8ad12821a7d.zip
Use URI defines from LV2 headers where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4175 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2info.c18
1 files changed, 9 insertions, 9 deletions
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 <stdlib.h>
#include <string.h>
+#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);