X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fswig%2Ftemplates.i;h=1baaf0fe3a6ca93861e689baa57b37602e067094;hb=36bb818d6f10ac1187f160f4c2ab1169aeb4e86f;hp=b3cf9fb98b2c1f9dadb5e667442094c3feb0350d;hpb=f2831ab35b4988930535dfd135884873b1b5b00d;p=libsigrok.git diff --git a/bindings/swig/templates.i b/bindings/swig/templates.i index b3cf9fb9..1baaf0fe 100644 --- a/bindings/swig/templates.i +++ b/bindings/swig/templates.i @@ -60,14 +60,21 @@ namespace std { for the map instantiation from compiling. */ %template(ConfigVector) std::vector; + %template(ConfigMap) std::map; -%template(CapabilitySet) - std::set; +%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(ConfigKeys) - std::map >; +%template(CapabilitySet) + std::set; %template(OptionVector) std::vector >;