diff options
author | Kilian Ulrichsohn <gustavfb@yahoo.de> | 2020-11-09 13:45:24 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-01 13:19:58 +0100 |
commit | 9f1c5cb43a908e6dbf9d2901608831de480fd7e1 (patch) | |
tree | f04baa773f2eef25996a81f3388655276c099c8a /bindings | |
parent | 51f729b55621979af7291cb791cda70e8accefbe (diff) | |
download | lilv-9f1c5cb43a908e6dbf9d2901608831de480fd7e1.tar.gz lilv-9f1c5cb43a908e6dbf9d2901608831de480fd7e1.tar.bz2 lilv-9f1c5cb43a908e6dbf9d2901608831de480fd7e1.zip |
Python: Allow connecting ports to structures
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/lilv.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/lilv.py b/bindings/python/lilv.py index 45b8e05..2a7614f 100644 --- a/bindings/python/lilv.py +++ b/bindings/python/lilv.py @@ -1460,6 +1460,10 @@ class Instance(Structure): self.get_descriptor().connect_port( self.get_handle(), port_index, data ) + elif isinstance(data, Structure): + self.get_descriptor().connect_port( + self.get_handle(), port_index, cast(byref(data), c_void_p) + ) elif type(data) == numpy.ndarray: self.get_descriptor().connect_port( self.get_handle(), |