summaryrefslogtreecommitdiffstats
path: root/src/port.c
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 /src/port.c
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 'src/port.c')
-rw-r--r--src/port.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/port.c b/src/port.c
index a8d1176..2263280 100644
--- a/src/port.c
+++ b/src/port.c
@@ -20,6 +20,8 @@
#include <stdlib.h>
#include <string.h>
+#include "lv2/lv2plug.in/ns/ext/event/event.h"
+
#include "lilv_internal.h"
LilvPort*
@@ -84,13 +86,11 @@ lilv_port_supports_event(const LilvPlugin* p,
const LilvPort* port,
const LilvNode* event)
{
-#define NS_EV (const uint8_t*)"http://lv2plug.in/ns/ext/event#"
-
assert(event);
SordIter* results = lilv_world_query_internal(
p->world,
port->node,
- sord_new_uri(p->world->world, NS_EV "supportsEvent"),
+ sord_new_uri(p->world->world, (const uint8_t*)LV2_EVENT__supportsEvent),
lilv_node_as_node(event));
const bool ret = !sord_iter_end(results);
@@ -219,7 +219,7 @@ lilv_port_get_scale_points(const LilvPlugin* p,
SordIter* points = lilv_world_query_internal(
p->world,
port->node,
- sord_new_uri(p->world->world, (const uint8_t*)LILV_NS_LV2 "scalePoint"),
+ sord_new_uri(p->world->world, (const uint8_t*)LV2_CORE__scalePoint),
NULL);
LilvScalePoints* ret = NULL;