summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-30 02:07:42 +0000
committerDavid Robillard <d@drobilla.net>2011-04-30 02:07:42 +0000
commit6c72abfc6d6649f07d85f70b25ce4393dc775a39 (patch)
treed87d8cc347a43b3b02d97caa6666848448c7e92c /src/world.c
parent054c39b12cb610d79006f0b51153cb2c4aa5a0b7 (diff)
downloadlilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.gz
lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.tar.bz2
lilv-6c72abfc6d6649f07d85f70b25ce4393dc775a39.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3241 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/world.c b/src/world.c
index 336970f..edd9bd1 100644
--- a/src/world.c
+++ b/src/world.c
@@ -56,8 +56,8 @@ lilv_world_new(void)
world->plugin_classes = lilv_plugin_classes_new();
world->plugins = lilv_plugins_new();
-#define NS_DYNMAN (const uint8_t*)"http://lv2plug.in/ns/ext/dynmanifest#"
-#define NS_DC (const uint8_t*)"http://dublincore.org/documents/dcmi-namespace/"
+#define NS_DYNMAN "http://lv2plug.in/ns/ext/dynmanifest#"
+#define NS_DC "http://dublincore.org/documents/dcmi-namespace/"
#define NEW_URI(uri) sord_new_uri(world->world, (const uint8_t*)uri)
#define NEW_URI_VAL(uri) lilv_new_uri(world, (const char*)(uri));
@@ -96,11 +96,11 @@ lilv_world_new(void)
assert(world->lv2_plugin_class);
world->namespaces = serd_env_new();
- lilv_world_set_prefix(world, "rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
- lilv_world_set_prefix(world, "rdfs", "http://www.w3.org/2000/01/rdf-schema#");
- lilv_world_set_prefix(world, "doap", "http://usefulinc.com/ns/doap#");
- lilv_world_set_prefix(world, "foaf", "http://xmlns.com/foaf/0.1/");
- lilv_world_set_prefix(world, "lv2", "http://lv2plug.in/ns/lv2core#");
+ lilv_world_set_prefix(world, "rdf", LILV_NS_RDF);
+ lilv_world_set_prefix(world, "rdfs", LILV_NS_RDFS);
+ lilv_world_set_prefix(world, "doap", LILV_NS_DOAP);
+ lilv_world_set_prefix(world, "foaf", LILV_NS_FOAF);
+ lilv_world_set_prefix(world, "lv2", LILV_NS_LV2);
lilv_world_set_prefix(world, "lv2ev", "http://lv2plug.in/ns/ext/event#");
world->n_read_files = 0;
@@ -474,7 +474,7 @@ lilv_world_load_dyn_manifest(LilvWorld* world,
dlclose(lib);
}
lilv_match_end(dmanifests);
-#endif // LILV_DYN_MANIFEST
+#endif // LILV_DYN_MANIFEST
}
LILV_API