]> sigrok.org Git - libsigrok.git/blobdiff - bindings/swig/classes.i
C++: Add SessionDevice class for devices owned by loaded sessions.
[libsigrok.git] / bindings / swig / classes.i
index fd9da099d9d274f57dad9195cff3cf8e55324fa8..fe89952c611bde5bc64795a96bdbce22596380a3 100644 (file)
@@ -68,6 +68,7 @@ template< class T > class enable_shared_from_this;
 %shared_ptr(sigrok::ChannelGroup);
 %shared_ptr(sigrok::EventSource);
 %shared_ptr(sigrok::Session);
+%shared_ptr(sigrok::SessionDevice);
 %shared_ptr(sigrok::Packet);
 %shared_ptr(sigrok::PacketPayload);
 %shared_ptr(sigrok::Header);
@@ -75,7 +76,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 +192,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,