From f591826cc739acdcb1f145f4e12a1b995b114c93 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Fri, 10 Oct 2014 19:37:47 +0100 Subject: [PATCH] bindings: add SWIG attribute for Packet::type. --- bindings/swig/classes.i | 2 ++ 1 file changed, 2 insertions(+) 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);