X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fpython%2Fsigrok%2Fcore%2Fclasses.i;h=3c327e4d4c50222b074961757d6cccb1d5659211;hb=062430a2fbd74a7ff153b77d92523daae9ec18a7;hp=27060cd1f24dc21712fac9edb79a39552eaf7d58;hpb=e480df0c4593d80df617b1a3da0065c0fb91a5ac;p=libsigrok.git diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index 27060cd1..3c327e4d 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -359,6 +359,14 @@ std::map dict_to_map_options(PyObject *dict, %include "doc.i" +%define %attributevector(Class, Type, Name, Get) +%attributeval(sigrok::Class, Type, Name, Get); +%enddef + +%define %attributemap(Class, Type, Name, Get) +%attributeval(sigrok::Class, Type, Name, Get); +%enddef + %include "../../../swig/classes.i" /* Support Driver.scan() with keyword arguments. */