]> sigrok.org Git - libsigrok.git/blobdiff - bindings/swig/classes.i
bindings: Expose ConfigKey::identifier as an attribute.
[libsigrok.git] / bindings / swig / classes.i
index 983fcdc242f057d93afd417baf642dc233f9c58f..1bbba90fd3fd53d4a482c8c7b99e58b42ae5aa3e 100644 (file)
@@ -208,7 +208,6 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 %attributeval(sigrok::OutputFormat,
     map_string_Option, options, options);
 
-%attributestring(sigrok::Device, std::string, description, description);
 %attributestring(sigrok::Device, std::string, vendor, vendor);
 %attributestring(sigrok::Device, std::string, model, model);
 %attributestring(sigrok::Device, std::string, version, version);
@@ -257,6 +256,10 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 %attributestring(sigrok::Session,
     std::shared_ptr<sigrok::Trigger>, trigger, trigger, set_trigger);
 
+%attributestring(sigrok::Session, std::string, filename, filename);
+
+%attribute(sigrok::Packet,
+    const sigrok::PacketType *, type, type);
 %attributestring(sigrok::Packet,
     std::shared_ptr<sigrok::PacketPayload>, payload, payload);
 
@@ -269,6 +272,8 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 
 %include "libsigrok/libsigrok.hpp"
 
+%include "enums.i"
+
 namespace sigrok {
 %include "libsigrok/enums.hpp"
 }