Skip to content

Commit

Permalink
Merge branch 'main' into check-swig-files
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangLe2016 committed Dec 10, 2024
2 parents 48bcd43 + dfb8c12 commit 919976e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/java/commissioner.i
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <commissioner/defines.hpp>
#include <commissioner/error.hpp>
#include <commissioner/network_data.hpp>
#include <commissioner/network_diag_data.hpp>
#include <commissioner/commissioner.hpp>
%}

Expand Down Expand Up @@ -99,6 +100,9 @@

%template(ChannelMask) std::vector<ot::commissioner::ChannelMaskEntry>;
%template(StringVector) std::vector<std::string>;
%template(ChildIpv6AddrInfoVector) std::vector<ot::commissioner::ChildIpv6AddrInfo>;
%template(ChildTableEntryVector) std::vector<ot::commissioner::ChildTableEntry>;
%template(RouteDataEntryVector) std::vector<ot::commissioner::RouteDataEntry>;

%typemap(jstype) std::string& OUTPUT "String[]"
%typemap(jtype) std::string& OUTPUT "String[]"
Expand Down Expand Up @@ -167,6 +171,12 @@ namespace commissioner {
const std::vector<std::string> &aMulticastAddrList,
uint32_t aTimeout);
%ignore Commissioner::RequestToken(Handler<ByteArray> 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);
Expand All @@ -186,5 +196,6 @@ namespace commissioner {
%include <commissioner/defines.hpp>
%include <commissioner/error.hpp>
%include <commissioner/network_data.hpp>
%include <commissioner/network_diag_data.hpp>
%include <commissioner/commissioner.hpp>
%include <commissioner/commissioner.hpp>

0 comments on commit 919976e

Please sign in to comment.