]> sigrok.org Git - libsigrok.git/blobdiff - bindings/swig/classes.i
Update bindings for new input API.
[libsigrok.git] / bindings / swig / classes.i
index fd9da099d9d274f57dad9195cff3cf8e55324fa8..cc4aa7429bdc6f973ba9cbacbb013de3fbda3718 100644 (file)
@@ -75,7 +75,8 @@ template< class T > class enable_shared_from_this;
 %shared_ptr(sigrok::Analog);
 %shared_ptr(sigrok::Logic);
 %shared_ptr(sigrok::InputFormat);
-%shared_ptr(sigrok::InputFileDevice);
+%shared_ptr(sigrok::Input);
+%shared_ptr(sigrok::InputDevice);
 %shared_ptr(sigrok::Option);
 %shared_ptr(sigrok::OutputFormat);
 %shared_ptr(sigrok::Output);
@@ -190,6 +191,9 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 %attributestring(sigrok::InputFormat,
     std::string, description, get_description);
 
+%attributestring(sigrok::Input,
+    std::shared_ptr<sigrok::InputDevice>, device, get_device);
+
 %attributestring(sigrok::Option,
     std::string, id, get_id);
 %attributestring(sigrok::Option,