From c11ecf0fd10641218326ae384e80413ba3cdf46c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 May 2009 17:42:51 +0000 Subject: Remove 'new_patch', 'new_node', and 'new_port' from interface in favour of generic 'put'. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2011 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/OSCClientSender.cpp | 81 ++---------------------------------------- 1 file changed, 3 insertions(+), 78 deletions(-) (limited to 'src/engine/OSCClientSender.cpp') diff --git a/src/engine/OSCClientSender.cpp b/src/engine/OSCClientSender.cpp index 5f351b87..55a42e9f 100644 --- a/src/engine/OSCClientSender.cpp +++ b/src/engine/OSCClientSender.cpp @@ -120,45 +120,11 @@ OSCClientSender::error(const std::string& msg) } -/** \page client_osc_namespace - *

\b /ingen/new_node - Notification of a new node's creation. - * \arg \b plug-uri (string) - URI of the plugin new node is an instance of - * \arg \b path (string) - Path of the new node - * \arg \b polyphonic (boolean) - Node is polyphonic\n\n - * \li New nodes are sent as a bundle. The first message in the bundle will be - * this one (/ingen/new_node), followed by a series of /ingen/new_port commands, - * followed by /ingen/new_node_end.

\n \n - */ -void OSCClientSender::new_node(const Path& node_path, - const URI& plugin_uri) -{ - send("/ingen/new_node", "ss", node_path.c_str(), plugin_uri.c_str(), LO_ARGS_END); -} - - - -/** \page client_osc_namespace - *

\b /ingen/new_port - Notification of a new port's creation. - * \arg \b path (string) - Path of new port - * \arg \b index (integer) - Index (or sort key) of port on parent - * \arg \b data-type (string) - Type of port (ingen:AudioPort, ingen:ControlPort, ingen:EventPort) - * \arg \b direction ("is-output") (integer) - Direction of data flow (Input = 0, Output = 1) - * - * \li Note that in the event of loading a patch, this message could be - * followed immediately by a control change, meaning the default-value is - * not actually the current value of the port. - * \li The minimum and maximum values are suggestions only, they are not - * enforced in any way, and going outside them is perfectly fine. Also note - * that the port ranges in om_gtk are not these ones! Those ranges are set - * as variable.

\n \n - */ void -OSCClientSender::new_port(const Path& path, - const URI& type, - uint32_t index, - bool is_output) +OSCClientSender::put(const Raul::Path& path, + const Shared::Resource::Properties& properties) { - send("/ingen/new_port", "sisi", path.c_str(), index, type.c_str(), is_output, LO_ARGS_END); + cerr << "OSC CLIENT PUT " << path << endl; } @@ -307,47 +273,6 @@ OSCClientSender::new_plugin(const URI& uri, } -bool -OSCClientSender::new_object(const Shared::GraphObject* object) -{ -#if 0 - using namespace Shared; - - const Patch* patch = dynamic_cast(object); - if (patch) { - new_patch(patch->path(), patch->internal_polyphony()); - return true; - } - - const Node* node = dynamic_cast(object); - if (node) { - new_node(node->path(), node->plugin()->uri()); - return true; - } - - const Port* port = dynamic_cast(object); - if (port) { - new_port(port->path(), port->type().uri(), port->index(), !port->is_input()); - return true; - } -#endif - - return false; -} - - -/** \page client_osc_namespace - *

\b /ingen/new_patch - Notification of a new patch - * \arg \b path (string) - Path of new patch - * \arg \b poly (int) - Polyphony of new patch (\em not a boolean like new_node)

\n \n - */ -void -OSCClientSender::new_patch(const Path& path, uint32_t poly) -{ - send("/ingen/new_patch", "si", path.c_str(), poly, LO_ARGS_END); -} - - /** \page client_osc_namespace *

\b /ingen/rename - Notification of an object's renaming * \arg \b old-path (string) - Old path of object -- cgit v1.2.1