From: Marc Schink Date: Wed, 20 Mar 2024 14:00:06 +0000 (+0100) Subject: bindings/swig: Make Device::serial_number() an attribute X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=17051fee3ef34c623bdfd22b7af4a66775067a55;p=libsigrok.git bindings/swig: Make Device::serial_number() an attribute Convert Device::serial_number() to an attribute string as for other functions such as vendor() and model(). Signed-off-by: Marc Schink --- diff --git a/bindings/swig/classes.i b/bindings/swig/classes.i index 523995da..71f1d8c3 100644 --- a/bindings/swig/classes.i +++ b/bindings/swig/classes.i @@ -152,6 +152,7 @@ typedef std::map %attributestring(sigrok::Device, std::string, vendor, vendor); %attributestring(sigrok::Device, std::string, model, model); %attributestring(sigrok::Device, std::string, version, version); +%attributestring(sigrok::Device, std::string, serial_number, serial_number); %attributevector(Device, std::vector >,