]> sigrok.org Git - libsigrok.git/commitdiff
bindings: add SWIG attribute for Packet::type.
authorMartin Ling <redacted>
Fri, 10 Oct 2014 18:37:47 +0000 (19:37 +0100)
committerBert Vermeulen <redacted>
Wed, 15 Oct 2014 11:44:44 +0000 (13:44 +0200)
bindings/swig/classes.i

index 983fcdc242f057d93afd417baf642dc233f9c58f..f4ee3ec4ab4f1a6029bee3ca65af6ee15b820625 100644 (file)
@@ -257,6 +257,8 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 %attributestring(sigrok::Session,
     std::shared_ptr<sigrok::Trigger>, trigger, trigger, set_trigger);
 
+%attribute(sigrok::Packet,
+    const sigrok::PacketType *, type, type);
 %attributestring(sigrok::Packet,
     std::shared_ptr<sigrok::PacketPayload>, payload, payload);