From dfb8c126418c69a96360435383e441bb9c2069e7 Mon Sep 17 00:00:00 2001 From: ZhangLe2016 <156590889+ZhangLe2016@users.noreply.github.com> Date: Tue, 10 Dec 2024 03:37:26 +0800 Subject: [PATCH] [swig] add the diagnostic apis into swig file (#306) integrated diagnostic apis into ot-commissioner.jar --- src/java/commissioner.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/java/commissioner.i b/src/java/commissioner.i index e6725c85..bc037df0 100644 --- a/src/java/commissioner.i +++ b/src/java/commissioner.i @@ -40,6 +40,7 @@ #include #include #include +#include #include %} @@ -99,6 +100,9 @@ %template(ChannelMask) std::vector; %template(StringVector) std::vector; +%template(ChildIpv6AddrInfoVector) std::vector; +%template(ChildTableEntryVector) std::vector; +%template(RouteDataEntryVector) std::vector; %typemap(jstype) std::string& OUTPUT "String[]" %typemap(jtype) std::string& OUTPUT "String[]" @@ -167,6 +171,12 @@ namespace commissioner { const std::vector &aMulticastAddrList, uint32_t aTimeout); %ignore Commissioner::RequestToken(Handler aHandler, const std::string &aAddr, uint16_t aPort); + %ignore Commissioner::CommandDiagGetQuery(ErrorHandler aHandler, + const std::string &aAddr, + uint64_t aDiagDataFlags); + %ignore Commissioner::CommandDiagReset(ErrorHandler aHandler, + const std::string &aAddr, + uint64_t aDiagDataFlags); // Remove operators and move constructor of Error. %ignore Error::operator=(const Error &aError); @@ -186,5 +196,6 @@ namespace commissioner { %include %include %include +%include %include %include