From 254b434f0a79fea54bd963e8ff2e845a5b0cd3a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Mar 2012 20:16:46 +0000 Subject: Partially functioning communication between Ingen LV2 plugin and UI. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4078 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/URIs.cpp | 150 +++++++++++++++++++++++++++------------------------- 1 file changed, 77 insertions(+), 73 deletions(-) (limited to 'src/shared/URIs.cpp') diff --git a/src/shared/URIs.cpp b/src/shared/URIs.cpp index 73718fab..07cd8ab1 100644 --- a/src/shared/URIs.cpp +++ b/src/shared/URIs.cpp @@ -37,9 +37,10 @@ using namespace Raul; namespace Ingen { namespace Shared { -URIs::Quark::Quark(LV2URIMap* map, const char* c_str) +URIs::Quark::Quark(Ingen::Forge& forge, LV2URIMap* map, const char* c_str) : Raul::URI(c_str) , id(map->map_uri(c_str)) + , atom(forge.alloc_uri(c_str)) { } @@ -48,79 +49,82 @@ URIs::Quark::Quark(LV2URIMap* map, const char* c_str) #define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define NS_RDFS "http://www.w3.org/2000/01/rdf-schema#" -URIs::URIs(Raul::Forge& f, LV2URIMap* map) +URIs::URIs(Ingen::Forge& f, LV2URIMap* map) : forge(f) - , atom_Bool (map, LV2_ATOM__Bool) - , atom_Float (map, LV2_ATOM__Float) - , atom_Int (map, LV2_ATOM__Int) - , atom_MessagePort (map, LV2_ATOM__MessagePort) - , atom_String (map, LV2_ATOM__String) - , atom_ValuePort (map, LV2_ATOM__ValuePort) - , atom_Vector (map, LV2_ATOM__Vector) - , atom_eventTransfer (map, LV2_ATOM__eventTransfer) - , atom_supports (map, LV2_ATOM__supports) - , ctx_audioContext (map, NS_CTX "audioContext") - , ctx_context (map, NS_CTX "context") - , ctx_messageContext (map, NS_CTX "messageContext") - , cv_CVPort (map, "http://lv2plug.in/ns/ext/cv-port#CVPort") - , doap_name (map, "http://usefulinc.com/ns/doap#name") - , ev_EventPort (map, "http://lv2plug.in/ns/ext/event#EventPort") - , ingen_Connection (map, NS_INGEN "Connection") - , ingen_Internal (map, NS_INGEN "Internal") - , ingen_Node (map, NS_INGEN "Node") - , ingen_Patch (map, NS_INGEN "Patch") - , ingen_Port (map, NS_INGEN "Port") - , ingen_activity (map, NS_INGEN "activity") - , ingen_broadcast (map, NS_INGEN "broadcast") - , ingen_canvasX (map, NS_INGEN "canvasX") - , ingen_canvasY (map, NS_INGEN "canvasY") - , ingen_controlBinding (map, NS_INGEN "controlBinding") - , ingen_destination (map, NS_INGEN "destination") - , ingen_document (map, NS_INGEN "document") - , ingen_enabled (map, NS_INGEN "enabled") - , ingen_engine (map, NS_INGEN "engine") - , ingen_nil (map, NS_INGEN "nil") - , ingen_node (map, NS_INGEN "node") - , ingen_polyphonic (map, NS_INGEN "polyphonic") - , ingen_polyphony (map, NS_INGEN "polyphony") - , ingen_sampleRate (map, NS_INGEN "sampleRate") - , ingen_selected (map, NS_INGEN "selected") - , ingen_source (map, NS_INGEN "source") - , ingen_value (map, NS_INGEN "value") - , lv2_AudioPort (map, LV2_CORE__AudioPort) - , lv2_ControlPort (map, LV2_CORE__ControlPort) - , lv2_InputPort (map, LV2_CORE__InputPort) - , lv2_OutputPort (map, LV2_CORE__OutputPort) - , lv2_Plugin (map, LV2_CORE__Plugin) - , lv2_connectionOptional(map, LV2_CORE__connectionOptional) - , lv2_default (map, LV2_CORE__default) - , lv2_index (map, LV2_CORE__index) - , lv2_integer (map, LV2_CORE__integer) - , lv2_maximum (map, LV2_CORE__maximum) - , lv2_minimum (map, LV2_CORE__minimum) - , lv2_name (map, LV2_CORE__name) - , lv2_portProperty (map, LV2_CORE__portProperty) - , lv2_sampleRate (map, LV2_CORE__sampleRate) - , lv2_symbol (map, LV2_CORE__symbol) - , lv2_toggled (map, LV2_CORE__toggled) - , midi_Bender (map, LV2_MIDI__Bender) - , midi_ChannelPressure (map, LV2_MIDI__ChannelPressure) - , midi_Controller (map, LV2_MIDI__Controller) - , midi_MidiEvent (map, LV2_MIDI__MidiEvent) - , midi_NoteOn (map, LV2_MIDI__NoteOn) - , midi_controllerNumber (map, LV2_MIDI__controllerNumber) - , midi_noteNumber (map, LV2_MIDI__noteNumber) - , patch_Get (map, LV2_PATCH__Get) - , patch_Put (map, LV2_PATCH__Put) - , patch_Response (map, LV2_PATCH__Response) - , patch_body (map, LV2_PATCH__body) - , patch_request (map, LV2_PATCH__request) - , patch_subject (map, LV2_PATCH__subject) - , rdf_instanceOf (map, NS_RDF "instanceOf") - , rdf_type (map, NS_RDF "type") - , rdfs_seeAlso (map, NS_RDFS "seeAlso") - , ui_Events (map, "http://lv2plug.in/ns/extensions/ui#Events") - , wildcard (map, NS_INGEN "wildcard") + , atom_Blank (forge, map, LV2_ATOM__Blank) + , atom_Bool (forge, map, LV2_ATOM__Bool) + , atom_Float (forge, map, LV2_ATOM__Float) + , atom_Int (forge, map, LV2_ATOM__Int) + , atom_MessagePort (forge, map, LV2_ATOM__MessagePort) + , atom_Sequence (forge, map, LV2_ATOM__Sequence) + , atom_Sound (forge, map, LV2_ATOM__Sound) + , atom_String (forge, map, LV2_ATOM__String) + , atom_ValuePort (forge, map, LV2_ATOM__ValuePort) + , atom_Vector (forge, map, LV2_ATOM__Vector) + , atom_bufferType (forge, map, LV2_ATOM__bufferType) + , atom_eventTransfer (forge, map, LV2_ATOM__eventTransfer) + , atom_supports (forge, map, LV2_ATOM__supports) + , ctx_audioContext (forge, map, NS_CTX "audioContext") + , ctx_context (forge, map, NS_CTX "context") + , ctx_messageContext (forge, map, NS_CTX "messageContext") + , cv_CVPort (forge, map, "http://lv2plug.in/ns/ext/cv-port#CVPort") + , doap_name (forge, map, "http://usefulinc.com/ns/doap#name") + , ingen_Connection (forge, map, NS_INGEN "Connection") + , ingen_Internal (forge, map, NS_INGEN "Internal") + , ingen_Node (forge, map, NS_INGEN "Node") + , ingen_Patch (forge, map, NS_INGEN "Patch") + , ingen_Port (forge, map, NS_INGEN "Port") + , ingen_activity (forge, map, NS_INGEN "activity") + , ingen_broadcast (forge, map, NS_INGEN "broadcast") + , ingen_canvasX (forge, map, NS_INGEN "canvasX") + , ingen_canvasY (forge, map, NS_INGEN "canvasY") + , ingen_controlBinding (forge, map, NS_INGEN "controlBinding") + , ingen_destination (forge, map, NS_INGEN "destination") + , ingen_document (forge, map, NS_INGEN "document") + , ingen_enabled (forge, map, NS_INGEN "enabled") + , ingen_engine (forge, map, NS_INGEN "engine") + , ingen_nil (forge, map, NS_INGEN "nil") + , ingen_node (forge, map, NS_INGEN "node") + , ingen_polyphonic (forge, map, NS_INGEN "polyphonic") + , ingen_polyphony (forge, map, NS_INGEN "polyphony") + , ingen_sampleRate (forge, map, NS_INGEN "sampleRate") + , ingen_selected (forge, map, NS_INGEN "selected") + , ingen_source (forge, map, NS_INGEN "source") + , ingen_value (forge, map, NS_INGEN "value") + , lv2_AudioPort (forge, map, LV2_CORE__AudioPort) + , lv2_ControlPort (forge, map, LV2_CORE__ControlPort) + , lv2_InputPort (forge, map, LV2_CORE__InputPort) + , lv2_OutputPort (forge, map, LV2_CORE__OutputPort) + , lv2_Plugin (forge, map, LV2_CORE__Plugin) + , lv2_connectionOptional(forge, map, LV2_CORE__connectionOptional) + , lv2_default (forge, map, LV2_CORE__default) + , lv2_index (forge, map, LV2_CORE__index) + , lv2_integer (forge, map, LV2_CORE__integer) + , lv2_maximum (forge, map, LV2_CORE__maximum) + , lv2_minimum (forge, map, LV2_CORE__minimum) + , lv2_name (forge, map, LV2_CORE__name) + , lv2_portProperty (forge, map, LV2_CORE__portProperty) + , lv2_sampleRate (forge, map, LV2_CORE__sampleRate) + , lv2_symbol (forge, map, LV2_CORE__symbol) + , lv2_toggled (forge, map, LV2_CORE__toggled) + , midi_Bender (forge, map, LV2_MIDI__Bender) + , midi_ChannelPressure (forge, map, LV2_MIDI__ChannelPressure) + , midi_Controller (forge, map, LV2_MIDI__Controller) + , midi_MidiEvent (forge, map, LV2_MIDI__MidiEvent) + , midi_NoteOn (forge, map, LV2_MIDI__NoteOn) + , midi_controllerNumber (forge, map, LV2_MIDI__controllerNumber) + , midi_noteNumber (forge, map, LV2_MIDI__noteNumber) + , patch_Get (forge, map, LV2_PATCH__Get) + , patch_Put (forge, map, LV2_PATCH__Put) + , patch_Response (forge, map, LV2_PATCH__Response) + , patch_body (forge, map, LV2_PATCH__body) + , patch_request (forge, map, LV2_PATCH__request) + , patch_subject (forge, map, LV2_PATCH__subject) + , rdf_instanceOf (forge, map, NS_RDF "instanceOf") + , rdf_type (forge, map, NS_RDF "type") + , rdfs_seeAlso (forge, map, NS_RDFS "seeAlso") + , ui_Events (forge, map, "http://lv2plug.in/ns/extensions/ui#Events") + , wildcard (forge, map, NS_INGEN "wildcard") { } -- cgit v1.2.1