summaryrefslogtreecommitdiffstats
path: root/src/bindings
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-27 17:42:51 +0000
committerDavid Robillard <d@drobilla.net>2009-05-27 17:42:51 +0000
commitc11ecf0fd10641218326ae384e80413ba3cdf46c (patch)
tree52ea61f88167a2e7eacc8fa5ff0ee39ee25b2e7e /src/bindings
parent8feac4ed0e764c677d4d208377e956c6db94d2dd (diff)
downloadingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.tar.gz
ingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.tar.bz2
ingen-c11ecf0fd10641218326ae384e80413ba3cdf46c.zip
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
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/Client.hpp11
-rwxr-xr-xsrc/bindings/test_ingen.py7
2 files changed, 4 insertions, 14 deletions
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()