From 0fd3c583e032a3cd5af877902d4561a45179a232 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Nov 2008 05:34:01 +0000 Subject: Follow new object creation via HTTP (serialising/parsing RDF to communicate between client and engine). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1722 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/CreateNodeEvent.cpp | 2 +- src/engine/events/CreatePatchEvent.cpp | 3 ++- src/engine/events/CreatePortEvent.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/engine/events') diff --git a/src/engine/events/CreateNodeEvent.cpp b/src/engine/events/CreateNodeEvent.cpp index d616ce1f..29f7f96e 100644 --- a/src/engine/events/CreateNodeEvent.cpp +++ b/src/engine/events/CreateNodeEvent.cpp @@ -142,7 +142,7 @@ CreateNodeEvent::post_process() _responder->respond_error(msg); } else { _responder->respond_ok(); - _engine.broadcaster()->send_node(_node, true); // yes, send ports + _engine.broadcaster()->send_object(_node, true); // yes, send ports } } diff --git a/src/engine/events/CreatePatchEvent.cpp b/src/engine/events/CreatePatchEvent.cpp index b390770a..56796557 100644 --- a/src/engine/events/CreatePatchEvent.cpp +++ b/src/engine/events/CreatePatchEvent.cpp @@ -127,7 +127,8 @@ CreatePatchEvent::post_process() // Don't send ports/nodes that have been added since prepare() // (otherwise they would be sent twice) - _engine.broadcaster()->send_patch(_patch, false); + //_engine.broadcaster()->send_patch(_patch, false); + _engine.broadcaster()->send_object(_patch, false); } else if (_error == INVALID_PATH) { string msg = "Attempt to create patch with illegal path "; diff --git a/src/engine/events/CreatePortEvent.cpp b/src/engine/events/CreatePortEvent.cpp index b02bec2a..8cb30a4b 100644 --- a/src/engine/events/CreatePortEvent.cpp +++ b/src/engine/events/CreatePortEvent.cpp @@ -154,7 +154,7 @@ CreatePortEvent::post_process() _responder->respond_error(msg); } else { _responder->respond_ok(); - _engine.broadcaster()->send_port(_patch_port); + _engine.broadcaster()->send_object(_patch_port, true); } } -- cgit v1.2.1