Skip to content

Commit

Permalink
[swig] add the diagnostic apis into swig file (#306)
Browse files Browse the repository at this point in the history
integrated diagnostic apis into ot-commissioner.jar
  • Loading branch information
ZhangLe2016 authored Dec 9, 2024
1 parent 53b4774 commit dfb8c12
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 dfb8c12

Please sign in to comment.