From: Uwe Hermann Date: Wed, 24 Apr 2013 22:15:49 +0000 (+0200) Subject: python: Add Session.open_device(). X-Git-Tag: dsupstream~64 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0e77b7cab31186b35d461e7d4ad3ce8a577857ee;p=libsigrok.git python: Add Session.open_device(). --- diff --git a/bindings/python/sigrok/core/classes.py b/bindings/python/sigrok/core/classes.py index da05dd12..f4d2e60e 100644 --- a/bindings/python/sigrok/core/classes.py +++ b/bindings/python/sigrok/core/classes.py @@ -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))