From: Martin Ling Date: Fri, 10 Oct 2014 18:37:47 +0000 (+0100) Subject: bindings: add SWIG attribute for Packet::type. X-Git-Tag: libsigrok-0.4.0~859 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f591826cc739acdcb1f145f4e12a1b995b114c93;p=libsigrok.git bindings: add SWIG attribute for Packet::type. --- diff --git a/bindings/swig/classes.i b/bindings/swig/classes.i index 983fcdc2..f4ee3ec4 100644 --- a/bindings/swig/classes.i +++ b/bindings/swig/classes.i @@ -257,6 +257,8 @@ typedef std::map %attributestring(sigrok::Session, std::shared_ptr, trigger, trigger, set_trigger); +%attribute(sigrok::Packet, + const sigrok::PacketType *, type, type); %attributestring(sigrok::Packet, std::shared_ptr, payload, payload);