X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fswig%2Ftemplates.i;h=1baaf0fe3a6ca93861e689baa57b37602e067094;hb=deaaebb28ddbbba609e902cf99fbe10d053eef8a;hp=f160866d21161db76c2bc2368b886f1b52bcd1f6;hpb=12f2f640cbe9167ad386a2d9069ec882d70cda5b;p=libsigrok.git diff --git a/bindings/swig/templates.i b/bindings/swig/templates.i index f160866d..1baaf0fe 100644 --- a/bindings/swig/templates.i +++ b/bindings/swig/templates.i @@ -60,20 +60,22 @@ namespace std { for the map instantiation from compiling. */ %template(ConfigVector) std::vector; + %template(ConfigMap) std::map; -/* Currently broken on Python. */ -#ifndef SWIGPYTHON +%template(ConfigSet) + std::set; + +/* Workaround for SWIG bug. The vector template instantiation + isn't needed but somehow fixes a bug that stops the wrapper + for the set instantiation from compiling. */ +%template(CapabilityVector) + std::vector; %template(CapabilitySet) std::set; -%template(ConfigKeys) - std::map >; - -#endif - %template(OptionVector) std::vector >; %template(OptionMap)