From d9ab095b7b0b5c32fd4f33978d3c9bff32480f50 Mon Sep 17 00:00:00 2001 From: Kangping Dong Date: Mon, 15 Jul 2024 12:45:58 +0800 Subject: [PATCH] [java] fix the SWIG interface for java The commissioner.i file is behind the APIs in include/commissioner/. --- src/java/commissioner.i | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/commissioner.i b/src/java/commissioner.i index 65f381e37..e6725c85e 100644 --- a/src/java/commissioner.i +++ b/src/java/commissioner.i @@ -43,8 +43,8 @@ #include %} -%include %include +%include %include %include %include @@ -63,6 +63,7 @@ %apply signed char { uint8_t }; %apply const signed char & { const uint8_t & }; %template(ByteArray) std::vector; + // Override the typemap of `uint8_t`. %apply unsigned char { uint8_t }; %apply const unsigned char & { const uint8_t & }; @@ -140,7 +141,6 @@ namespace commissioner { %ignore Commissioner::GetPendingDataset(Handler aHandler, uint16_t aDatasetFlags); %ignore Commissioner::SetPendingDataset(ErrorHandler aHandler, const PendingOperationalDataset &aPendingDataset); %ignore Commissioner::SetSecurePendingDataset(ErrorHandler aHandler, - const std::string & aPbbrAddr, uint32_t aMaxRetrievalTimer, const PendingOperationalDataset &aDataset); %ignore Commissioner::CommandReenroll(ErrorHandler aHandler, const std::string &aDstAddr); @@ -164,7 +164,6 @@ namespace commissioner { uint16_t aScanDuration, const std::string &aDstAddr); %ignore Commissioner::RegisterMulticastListener(Handler aHandler, - const std::string & aPbbrAddr, const std::vector &aMulticastAddrList, uint32_t aTimeout); %ignore Commissioner::RequestToken(Handler aHandler, const std::string &aAddr, uint16_t aPort); @@ -179,6 +178,8 @@ namespace commissioner { %ignore operator!=(const Error &aError, const ErrorCode &aErrorCode); %ignore operator==(const ErrorCode &aErrorCode, const Error &aError); %ignore operator!=(const ErrorCode &aErrorCode, const Error &aError); + %ignore PrintTo(const Error &aError, std::ostream *os); + %ignore PrintTo(ErrorCode aErrorCode, std::ostream *os); } }