X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fswig%2Ftemplates.i;h=f160866d21161db76c2bc2368b886f1b52bcd1f6;hb=12f2f640cbe9167ad386a2d9069ec882d70cda5b;hp=bbb3619cbc4db653d76abb048560160cedb9f802;hpb=c7855def613435e18c1424ce87ffda8a42f1c53f;p=libsigrok.git diff --git a/bindings/swig/templates.i b/bindings/swig/templates.i index bbb3619c..f160866d 100644 --- a/bindings/swig/templates.i +++ b/bindings/swig/templates.i @@ -26,6 +26,13 @@ using namespace std; %include "std_shared_ptr.i" %include "std_vector.i" %include "std_map.i" +#ifdef SWIGJAVA +namespace std { + template class set {}; +} +#else +%include "std_set.i" +#endif %template(StringMap) std::map; @@ -56,6 +63,17 @@ using namespace std; %template(ConfigMap) std::map; +/* Currently broken on Python. */ +#ifndef SWIGPYTHON + +%template(CapabilitySet) + std::set; + +%template(ConfigKeys) + std::map >; + +#endif + %template(OptionVector) std::vector >; %template(OptionMap)