diff options
author | David Robillard <d@drobilla.net> | 2012-04-12 23:47:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-12 23:47:14 +0000 |
commit | b122168527db12971d53697cf384e8ad12821a7d (patch) | |
tree | d9d3094b5205e027358702c4112e3bd1dde25cd6 /src/plugin.c | |
parent | 538e4694d2d35c808a57937a5f3bec67b299f60f (diff) | |
download | lilv-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/plugin.c')
-rw-r--r-- | src/plugin.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugin.c b/src/plugin.c index 013cbe0..b4a2f0b 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -24,7 +24,8 @@ #include "lilv_config.h" #include "lilv_internal.h" -#define NS_UI (const uint8_t*)"http://lv2plug.in/ns/extensions/ui#" +#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" + #define NS_DOAP (const uint8_t*)"http://usefulinc.com/ns/doap#" #define NS_FOAF (const uint8_t*)"http://xmlns.com/foaf/0.1/" @@ -423,7 +424,7 @@ lilv_plugin_verify(const LilvPlugin* plugin) } lilv_nodes_free(results); - LilvNode* lv2_port = lilv_new_uri(plugin->world, LILV_NS_LV2 "port"); + LilvNode* lv2_port = lilv_new_uri(plugin->world, LV2_CORE__port); results = lilv_plugin_get_value(plugin, lv2_port); lilv_node_free(lv2_port); if (!results) { @@ -839,8 +840,10 @@ lilv_plugin_get_uis(const LilvPlugin* p) { lilv_plugin_load_if_necessary(p); - SordNode* ui_ui_node = sord_new_uri(p->world->world, NS_UI "ui"); - SordNode* ui_binary_node = sord_new_uri(p->world->world, NS_UI "binary"); + SordNode* ui_ui_node = sord_new_uri(p->world->world, + (const uint8_t*)LV2_UI__ui); + SordNode* ui_binary_node = sord_new_uri(p->world->world, + (const uint8_t*)LV2_UI__binary); LilvUIs* result = lilv_uis_new(); SordIter* uis = lilv_world_query_internal( |