diff options
author | David Robillard <d@drobilla.net> | 2016-08-01 15:44:14 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-17 17:25:42 -0400 |
commit | 17ad0ca1ad23b336b0fa5952f42dfad95397fc47 (patch) | |
tree | 1cac18de3f2b56ac7885fa7f9566ded8eab8872e /src/server/events | |
parent | d6621e5d1e6f705a09106f62cc75cb33c8c18670 (diff) | |
download | ingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.tar.gz ingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.tar.bz2 ingen-17ad0ca1ad23b336b0fa5952f42dfad95397fc47.zip |
Rename main graph and control/notify ports
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/CreateGraph.cpp | 7 | ||||
-rw-r--r-- | src/server/events/Delete.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp index d14e2f1f..b5cffcb0 100644 --- a/src/server/events/CreateGraph.cpp +++ b/src/server/events/CreateGraph.cpp @@ -51,7 +51,6 @@ CreateGraph::build_child_events() // Properties common to both ports Resource::Properties control_properties; - control_properties.put(uris.lv2_name, uris.forge.alloc("Control")); control_properties.put(uris.rdf_type, uris.atom_AtomPort); control_properties.put(uris.atom_bufferType, uris.atom_Sequence); control_properties.put(uris.atom_supports, uris.patch_Message); @@ -60,6 +59,7 @@ CreateGraph::build_child_events() // Add control input Resource::Properties in_properties(control_properties); + in_properties.put(uris.lv2_name, uris.forge.alloc("Control")); in_properties.put(uris.rdf_type, uris.lv2_InputPort); in_properties.put(uris.lv2_index, uris.forge.make(0)); in_properties.put(uris.ingen_canvasX, uris.forge.make(32.0f), @@ -71,11 +71,12 @@ CreateGraph::build_child_events() SPtr<Events::CreatePort>( new Events::CreatePort( _engine, _request_client, -1, _time, - _path.child(Raul::Symbol("control_in")), + _path.child(Raul::Symbol("control")), in_properties))); // Add control out Resource::Properties out_properties(control_properties); + out_properties.put(uris.lv2_name, uris.forge.alloc("Notify")); out_properties.put(uris.rdf_type, uris.lv2_OutputPort); out_properties.put(uris.lv2_index, uris.forge.make(1)); out_properties.put(uris.ingen_canvasX, uris.forge.make(128.0f), @@ -86,7 +87,7 @@ CreateGraph::build_child_events() _child_events.push_back( SPtr<Events::CreatePort>( new Events::CreatePort(_engine, _request_client, -1, _time, - _path.child(Raul::Symbol("control_out")), + _path.child(Raul::Symbol("notify")), out_properties))); } diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp index 7b27e11f..915c56fc 100644 --- a/src/server/events/Delete.cpp +++ b/src/server/events/Delete.cpp @@ -59,7 +59,7 @@ Delete::~Delete() bool Delete::pre_process() { - if (_path.is_root() || _path == "/control_in" || _path == "/control_out") { + if (_path.is_root() || _path == "/control" || _path == "/notify") { return Event::pre_process_done(Status::NOT_DELETABLE, _path); } |