Skip to content

Commit

Permalink
tv-casting-app WoL: removing _1 from JNI verifyOrEstablishConnection API
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed Oct 10, 2023
1 parent 913313c commit 1b062aa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ JNI_METHOD(jobject, readCachedVideoPlayers)(JNIEnv * env, jobject)
return jVideoPlayerList;
}

JNI_METHOD(jboolean, _1verifyOrEstablishConnection)
JNI_METHOD(jboolean, verifyOrEstablishConnection)
(JNIEnv * env, jobject, jobject videoPlayer, jobject jOnConnectionSuccessHandler, jobject jOnConnectionFailureHandler,
jobject jOnNewOrUpdatedEndpointHandler)
{
chip::DeviceLayer::StackLock lock;

ChipLogProgress(AppServer, "JNI_METHOD _1verifyOrEstablishConnection called");
ChipLogProgress(AppServer, "JNI_METHOD verifyOrEstablishConnection called");

TargetVideoPlayerInfo targetVideoPlayerInfo;
CHIP_ERROR err = convertJVideoPlayerToTargetVideoPlayerInfo(videoPlayer, targetVideoPlayerInfo);
Expand All @@ -283,7 +283,7 @@ JNI_METHOD(jboolean, _1verifyOrEstablishConnection)
[](CHIP_ERROR err) { TvCastingAppJNIMgr().getOnConnectionFailureHandler(true).Handle(err); },
[](TargetEndpointInfo * endpoint) { TvCastingAppJNIMgr().getOnNewOrUpdatedEndpointHandler(true).Handle(endpoint); });
VerifyOrExit(CHIP_NO_ERROR == err,
ChipLogError(AppServer, "CastingServer::_1verifyOrEstablishConnection failed: %" CHIP_ERROR_FORMAT, err.Format()));
ChipLogError(AppServer, "CastingServer::verifyOrEstablishConnection failed: %" CHIP_ERROR_FORMAT, err.Format()));

exit:
return (err == CHIP_NO_ERROR);
Expand Down

0 comments on commit 1b062aa

Please sign in to comment.