summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-17 01:11:29 +0000
committerDavid Robillard <d@drobilla.net>2010-10-17 01:11:29 +0000
commit5a1ccca68baf9e8efffe3e0297730a911617693d (patch)
tree675764eb06e152f09b1d97c317d445a8050f253a /src/shared
parent78f786d90943cd63eb5db761e910169990c66d93 (diff)
downloadingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.gz
ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.bz2
ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.zip
Support current versions of LV2 atom, atom-port, and context extensions.
Working use case in this revision: lolep.parse => lolep.print (set parse input to some string, it will be parsed, send to print as an LV2 atom, then printed to the console by print). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2631 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/LV2URIMap.cpp7
-rw-r--r--src/shared/LV2URIMap.hpp7
-rw-r--r--src/shared/ResourceImpl.cpp4
3 files changed, 8 insertions, 10 deletions
diff --git a/src/shared/LV2URIMap.cpp b/src/shared/LV2URIMap.cpp
index b563a0d0..d77721d1 100644
--- a/src/shared/LV2URIMap.cpp
+++ b/src/shared/LV2URIMap.cpp
@@ -96,9 +96,9 @@ LV2URIMap::LV2URIMap()
, midi_controllerNumber(NS_MIDI "controllerNumber")
, midi_event("http://lv2plug.in/ns/ext/midi#MidiEvent")
, midi_noteNumber(NS_MIDI "noteNumber")
- , obj_MessagePort("http://lv2plug.in/ns/ext/objects#MessagePort")
- , obj_ValuePort("http://lv2plug.in/ns/ext/objects#ValuePort")
- , obj_supports("http://lv2plug.in/ns/ext/objects#supports")
+ , aport_MessagePort("http://lv2plug.in/ns/ext/atom-port#MessagePort")
+ , aport_ValuePort("http://lv2plug.in/ns/ext/atom-port#ValuePort")
+ , aport_supports("http://lv2plug.in/ns/ext/atom-port#supports")
, object_class_bool(LV2_ATOM_URI "#Bool")
, object_class_float32(LV2_ATOM_URI "#Float32")
, object_class_int32(LV2_ATOM_URI "#Int32")
@@ -108,7 +108,6 @@ LV2URIMap::LV2URIMap()
, rdf_instanceOf(NS_RDF "instanceOf")
, rdf_type(NS_RDF "type")
, rdfs_seeAlso(NS_RDFS "seeAlso")
- , string_transfer("http://lv2plug.in/ns/ext/string-port#StringTransfer")
, ui_format_events("http://lv2plug.in/ns/extensions/ui#Events")
, wildcard(NS_INGEN "wildcard")
{
diff --git a/src/shared/LV2URIMap.hpp b/src/shared/LV2URIMap.hpp
index d53458fc..7ee732dc 100644
--- a/src/shared/LV2URIMap.hpp
+++ b/src/shared/LV2URIMap.hpp
@@ -98,9 +98,9 @@ public:
const Quark midi_controllerNumber;
const Quark midi_event;
const Quark midi_noteNumber;
- const Quark obj_MessagePort;
- const Quark obj_ValuePort;
- const Quark obj_supports;
+ const Quark aport_MessagePort;
+ const Quark aport_ValuePort;
+ const Quark aport_supports;
const Quark object_class_bool;
const Quark object_class_float32;
const Quark object_class_int32;
@@ -110,7 +110,6 @@ public:
const Quark rdf_instanceOf;
const Quark rdf_type;
const Quark rdfs_seeAlso;
- const Quark string_transfer;
const Quark ui_format_events;
const Quark wildcard;
};
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index 50395249..af706e15 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -149,10 +149,10 @@ ResourceImpl::type(
} else if (atom == uris.lv2ev_EventPort) {
data_type = PortType::EVENTS;
port = true;
- } else if (atom == uris.obj_ValuePort) {
+ } else if (atom == uris.aport_ValuePort) {
data_type = PortType::VALUE;
port = true;
- } else if (atom == uris.obj_MessagePort) {
+ } else if (atom == uris.aport_MessagePort) {
data_type = PortType::MESSAGE;
port = true;
} else {