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/world.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/world.c')
-rw-r--r-- | src/world.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/world.c b/src/world.c index 97901e6..8eb3591 100644 --- a/src/world.c +++ b/src/world.c @@ -19,6 +19,8 @@ #include <stdlib.h> #include <string.h> +#include "lv2/lv2plug.in/ns/ext/presets/presets.h" + #include "lilv_internal.h" LILV_API @@ -48,31 +50,30 @@ lilv_world_new(void) #define NS_DCTERMS "http://purl.org/dc/terms/" #define NS_DYNMAN "http://lv2plug.in/ns/ext/dynmanifest#" -#define NS_PSET "http://lv2plug.in/ns/ext/presets#" #define NEW_URI(uri) sord_new_uri(world->world, (const uint8_t*)uri) world->uris.dc_replaces = NEW_URI(NS_DCTERMS "replaces"); world->uris.dman_DynManifest = NEW_URI(NS_DYNMAN "DynManifest"); world->uris.doap_name = NEW_URI(LILV_NS_DOAP "name"); - world->uris.lv2_Plugin = NEW_URI(LILV_NS_LV2 "Plugin"); - world->uris.lv2_Specification = NEW_URI(LILV_NS_LV2 "Specification"); - world->uris.lv2_appliesTo = NEW_URI(LILV_NS_LV2 "appliesTo"); - world->uris.lv2_binary = NEW_URI(LILV_NS_LV2 "binary"); - world->uris.lv2_default = NEW_URI(LILV_NS_LV2 "default"); - world->uris.lv2_designation = NEW_URI(LILV_NS_LV2 "designation"); - world->uris.lv2_extensionData = NEW_URI(LILV_NS_LV2 "extensionData"); - world->uris.lv2_index = NEW_URI(LILV_NS_LV2 "index"); - world->uris.lv2_maximum = NEW_URI(LILV_NS_LV2 "maximum"); - world->uris.lv2_minimum = NEW_URI(LILV_NS_LV2 "minimum"); - world->uris.lv2_name = NEW_URI(LILV_NS_LV2 "name"); - world->uris.lv2_optionalFeature = NEW_URI(LILV_NS_LV2 "optionalFeature"); - world->uris.lv2_port = NEW_URI(LILV_NS_LV2 "port"); - world->uris.lv2_portProperty = NEW_URI(LILV_NS_LV2 "portProperty"); - world->uris.lv2_reportsLatency = NEW_URI(LILV_NS_LV2 "reportsLatency"); - world->uris.lv2_requiredFeature = NEW_URI(LILV_NS_LV2 "requiredFeature"); - world->uris.lv2_symbol = NEW_URI(LILV_NS_LV2 "symbol"); - world->uris.pset_value = NEW_URI(NS_PSET "value"); + world->uris.lv2_Plugin = NEW_URI(LV2_CORE__Plugin); + world->uris.lv2_Specification = NEW_URI(LV2_CORE__Specification); + world->uris.lv2_appliesTo = NEW_URI(LV2_CORE__appliesTo); + world->uris.lv2_binary = NEW_URI(LV2_CORE__binary); + world->uris.lv2_default = NEW_URI(LV2_CORE__default); + world->uris.lv2_designation = NEW_URI(LV2_CORE__designation); + world->uris.lv2_extensionData = NEW_URI(LV2_CORE__extensionData); + world->uris.lv2_index = NEW_URI(LV2_CORE__index); + world->uris.lv2_maximum = NEW_URI(LV2_CORE__maximum); + world->uris.lv2_minimum = NEW_URI(LV2_CORE__minimum); + world->uris.lv2_name = NEW_URI(LV2_CORE__name); + world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature); + world->uris.lv2_port = NEW_URI(LV2_CORE__port); + world->uris.lv2_portProperty = NEW_URI(LV2_CORE__portProperty); + world->uris.lv2_reportsLatency = NEW_URI(LV2_CORE__reportsLatency); + world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature); + world->uris.lv2_symbol = NEW_URI(LV2_CORE__symbol); + world->uris.pset_value = NEW_URI(LV2_PRESETS__value); world->uris.rdf_a = NEW_URI(LILV_NS_RDF "type"); world->uris.rdf_value = NEW_URI(LILV_NS_RDF "value"); world->uris.rdfs_Class = NEW_URI(LILV_NS_RDFS "Class"); |