]> sigrok.org Git - libsigrok.git/commitdiff
python: Add Session.open_device().
authorUwe Hermann <redacted>
Wed, 24 Apr 2013 22:15:49 +0000 (00:15 +0200)
committerUwe Hermann <redacted>
Wed, 24 Apr 2013 22:15:49 +0000 (00:15 +0200)
bindings/python/sigrok/core/classes.py

index da05dd12ef00a35de0194fb22e00ef02f03142d4..f4d2e60e9f40fe2a8e8b7dd4515830e50d33b31b 100644 (file)
@@ -197,6 +197,9 @@ class Session(object):
     def add_device(self, device):
         check(sr_session_dev_add(device.struct))
 
+    def open_device(self, device):
+        check(sr_dev_open(device.struct))
+
     def add_callback(self, callback):
         wrapper = partial(callback_wrapper, self, callback)
         check(sr_session_datafeed_python_callback_add(wrapper))