X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fswig%2Fclasses.i;h=cc4aa7429bdc6f973ba9cbacbb013de3fbda3718;hb=ca3291e3ee7415c4c4505164ec931b91ea15cefe;hp=fd9da099d9d274f57dad9195cff3cf8e55324fa8;hpb=b84cba4dbf2a78806848f9dbaf10238a18daf735;p=libsigrok.git diff --git a/bindings/swig/classes.i b/bindings/swig/classes.i index fd9da099..cc4aa742 100644 --- a/bindings/swig/classes.i +++ b/bindings/swig/classes.i @@ -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 %attributestring(sigrok::InputFormat, std::string, description, get_description); +%attributestring(sigrok::Input, + std::shared_ptr, device, get_device); + %attributestring(sigrok::Option, std::string, id, get_id); %attributestring(sigrok::Option,