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 | 13e0055f99be75e81e50de81fc7b5bc3670b35e9 (patch) | |
tree | cc7bd06ec9ffab1206879d9727fa7343a0789f98 /src/jalv.c | |
parent | 26b5ad90e914ba18191aadffd79257c06f64b6cd (diff) | |
download | jalv-13e0055f99be75e81e50de81fc7b5bc3670b35e9.tar.gz jalv-13e0055f99be75e81e50de81fc7b5bc3670b35e9.tar.bz2 jalv-13e0055f99be75e81e50de81fc7b5bc3670b35e9.zip |
Use URI defines from LV2 headers where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4175 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv.c')
-rw-r--r-- | src/jalv.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -43,6 +43,7 @@ #include "lv2/lv2plug.in/ns/ext/uri-map/uri-map.h" #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "lv2/lv2plug.in/ns/ext/worker/worker.h" +#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" #include "lilv/lilv.h" @@ -51,11 +52,7 @@ #include "lv2_evbuf.h" #include "worker.h" -#define NS_ATOM "http://lv2plug.in/ns/ext/atom#" -#define NS_MIDI "http://lv2plug.in/ns/ext/midi#" -#define NS_PSET "http://lv2plug.in/ns/ext/presets#" -#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" -#define NS_UI "http://lv2plug.in/ns/extensions/ui#" +#define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define USTR(str) ((const uint8_t*)str) @@ -542,9 +539,9 @@ jalv_ui_is_resizable(Jalv* jalv) } const LilvNode* s = lilv_ui_get_uri(jalv->ui); - LilvNode* p = lilv_new_uri(jalv->world, NS_UI "optionalFeature"); - LilvNode* fs = lilv_new_uri(jalv->world, NS_UI "fixedSize"); - LilvNode* nrs = lilv_new_uri(jalv->world, NS_UI "noUserResize"); + LilvNode* p = lilv_new_uri(jalv->world, LV2_CORE__optionalFeature); + LilvNode* fs = lilv_new_uri(jalv->world, LV2_UI__fixedSize); + LilvNode* nrs = lilv_new_uri(jalv->world, LV2_UI__noUserResize); LilvNodes* fs_matches = lilv_world_find_nodes(jalv->world, s, p, fs); LilvNodes* nrs_matches = lilv_world_find_nodes(jalv->world, s, p, nrs); |