]> sigrok.org Git - libsigrok.git/commitdiff
bindings: Expose Analog::channels() as an attribute.
authorMartin Ling <redacted>
Tue, 11 Nov 2014 23:54:39 +0000 (23:54 +0000)
committerUwe Hermann <redacted>
Wed, 12 Nov 2014 01:27:05 +0000 (02:27 +0100)
bindings/swig/classes.i

index 4fb37315821d6d4d7004c7906f02bd9fddd5aaa1..2212d9b3e7dceca6e04817e6eead97b40b32eacd 100644 (file)
@@ -263,6 +263,8 @@ typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
 
 %attributemap(Meta, map_ConfigKey_Variant, config, config);
 
+%attributevector(Analog,
+    std::vector<std::shared_ptr<sigrok::Channel> >, channels, channels);
 %attribute(sigrok::Analog, int, num_samples, num_samples);
 %attribute(sigrok::Analog, const sigrok::Quantity *, mq, mq);
 %attribute(sigrok::Analog, const sigrok::Unit *, unit, unit);