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/bindings/Client.hpp | 11 ++--------- src/bindings/test_ingen.py | 7 ++----- 2 files changed, 4 insertions(+), 14 deletions(-) (limited to 'src/bindings') diff --git a/src/bindings/Client.hpp b/src/bindings/Client.hpp index 1a18ea73..5e9ed094 100644 --- a/src/bindings/Client.hpp +++ b/src/bindings/Client.hpp @@ -42,15 +42,8 @@ public: const std::string& type_uri, const std::string& symbol) {} - virtual void new_patch(const std::string& path, uint32_t poly) {} - - virtual void new_node(const std::string& path, - const std::string& plugin_uri) {} - - virtual void new_port(const std::string& path, - const std::string& type, - uint32_t index, - bool is_output) {} + void put(const Path& path, + const Resource::Properties& properties) {} virtual void clear_patch(const std::string& path) {} diff --git a/src/bindings/test_ingen.py b/src/bindings/test_ingen.py index 9b925155..c858e7df 100755 --- a/src/bindings/test_ingen.py +++ b/src/bindings/test_ingen.py @@ -15,11 +15,8 @@ class PythonClient(ingen.Client): def bundle_end(self): print "*** }" - def new_port(self, path, data_type, is_output): - print "*** Received Port:", path, data_type, is_output - - def new_node(self, plugin_uri, path, polyphonic, nports): - print "*** Received Node:", plugin_uri, path, polyphonic, nports + def put(self, path, properties): + print "*** Received Object:", path c = PythonClient() c.enable() -- cgit v1.2.1