From: Martin Ling Date: Tue, 11 Nov 2014 23:54:39 +0000 (+0000) Subject: bindings: Expose Analog::channels() as an attribute. X-Git-Tag: libsigrok-0.4.0~790 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b20635771c249f9548af414f21a92b296e284475;p=libsigrok.git bindings: Expose Analog::channels() as an attribute. --- diff --git a/bindings/swig/classes.i b/bindings/swig/classes.i index 4fb37315..2212d9b3 100644 --- a/bindings/swig/classes.i +++ b/bindings/swig/classes.i @@ -263,6 +263,8 @@ typedef std::map %attributemap(Meta, map_ConfigKey_Variant, config, config); +%attributevector(Analog, + std::vector >, 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);