diff options
author | David Robillard <d@drobilla.net> | 2008-08-19 01:04:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-19 01:04:54 +0000 |
commit | a7e39b85d7c35ec44c613e593c57ff27de0d06bc (patch) | |
tree | 2a83f1264721bd5c7a06ad4beaa5d1f28f8bb0d6 /src/libs/engine | |
parent | 5609c1ce452f8122b5ed12144dd4c1941bd07bc2 (diff) | |
download | ingen-a7e39b85d7c35ec44c613e593c57ff27de0d06bc.tar.gz ingen-a7e39b85d7c35ec44c613e593c57ff27de0d06bc.tar.bz2 ingen-a7e39b85d7c35ec44c613e593c57ff27de0d06bc.zip |
Remove more API/code: num_plugins (unused legacy of the really crap OSC days).
git-svn-id: http://svn.drobilla.net/lad/ingen@1442 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine')
-rw-r--r-- | src/libs/engine/OSCClientSender.cpp | 79 | ||||
-rw-r--r-- | src/libs/engine/OSCClientSender.hpp | 2 |
2 files changed, 0 insertions, 81 deletions
diff --git a/src/libs/engine/OSCClientSender.cpp b/src/libs/engine/OSCClientSender.cpp index 4073f994..4518bfdf 100644 --- a/src/libs/engine/OSCClientSender.cpp +++ b/src/libs/engine/OSCClientSender.cpp @@ -123,85 +123,6 @@ OSCClientSender::error(const std::string& msg) /** \page client_osc_namespace - * <p> \b /ingen/num_plugins - * \arg \b num (int) - Number of plugins engine has loaded\n\n - * \li This is sent before sending the list of plugins, so the client is aware - * of how many plugins (/ingen/plugin messages) to expect.</p> \n \n - */ - - -/** \page client_osc_namespace - * <p> \b /ingen/num_plugins - * \arg \b num (int) - Number of plugins engine has loaded\n\n - * \li This is sent before sending the list of plugins, so the client is aware - * of how many plugins (/ingen/plugin messages) to expect.</p> \n \n - */ -void -OSCClientSender::num_plugins(uint32_t num) -{ - send("/ingen/num_plugins", "i", num, LO_ARGS_END); -} - - -/** \page client_osc_namespace - * <p> \b /ingen/plugin - Notification of the existance of a plugin - * \arg \b type (string) - Type if plugin ("LADSPA", "LV2", or "Internal") - * \arg \b uri (string) - URI of the plugin (see engine namespace documentation) \n - * \arg \b lib-name (string) - Name of shared library plugin resides in (ie "cmt.so") - * \arg \b plug-label (string) - Label of the plugin (ie "dahdsr_iaoa") - * \arg \b name (string) - Descriptive human-readable name of plugin (ie "ADSR Envelope") - * </p> \n \n - */ -/* -void -OSCClientSender::plugins() -{ - Engine::instance().node_factory()->lock_plugin_list(); - - const list<Plugin*>& plugs = Engine::instance().node_factory()->plugins(); - const Plugin* plugin; - - lo_timetag tt; - lo_timetag_now(&tt); - lo_bundle b = lo_bundle_new(tt); - lo_message m = lo_message_new(); - list<lo_message> msgs; - - lo_message_add_int32(m, plugs.size()); - lo_bundle_add_message(b, "/ingen/num_plugins", m); - msgs.push_back(m); - - for (list<Plugin*>::const_iterator j = plugs.begin(); j != plugs.end(); ++j) { - plugin = (*j); - m = lo_message_new(); - - lo_message_add_string(m, plugin->type_const std::string&()); - lo_message_add_string(m, plugin->uri().c_str()); - lo_message_add_string(m, plugin->plug_label().c_str()); - lo_message_add_string(m, plugin->name().c_str()); - lo_bundle_add_message(b, "/ingen/plugin", m); - msgs.push_back(m); - if (lo_bundle_length(b) > 1024) { - lo_send_bundle(_address, b); - lo_bundle_free(b); - b = lo_bundle_new(tt); - } - } - - if (lo_bundle_length(b) > 0) { - lo_send_bundle(_address, b); - lo_bundle_free(b); - } else { - lo_bundle_free(b); - } - for (list<lo_bundle>::const_iterator i = msgs.begin(); i != msgs.end(); ++i) - lo_message_free(*i); - - Engine::instance().node_factory()->unlock_plugin_list(); -} -*/ - -/** \page client_osc_namespace * <p> \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 diff --git a/src/libs/engine/OSCClientSender.hpp b/src/libs/engine/OSCClientSender.hpp index 9a79f934..1b890ddd 100644 --- a/src/libs/engine/OSCClientSender.hpp +++ b/src/libs/engine/OSCClientSender.hpp @@ -67,8 +67,6 @@ public: void response_ok(int32_t id); void response_error(int32_t id, const std::string& msg); - void num_plugins(uint32_t num); - void error(const std::string& msg); virtual void new_plugin(const std::string& uri, |