From 52a9da7f7742b1a424afe8b2138c7e3f2d5f218d Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Thu, 14 Oct 2021 17:32:31 +0900 Subject: [PATCH] [cpp cion] omitted handle for callback user_data Change-Id: Iae9649d1a4558bf2a6d855b14afd38e2c0e58847 Signed-off-by: Inkyun Kil --- idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h | 2 +- idlc/gen_cion/cpp_cion_stub_body_gen_cb.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h b/idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h index c95685f..3de85d9 100644 --- a/idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h +++ b/idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h @@ -194,7 +194,7 @@ void ##::Disconnect() { } void ##::Discovery() { - int ret = cion_client_try_discovery(cion_client_, OnDiscoveredCB, nullptr); + int ret = cion_client_try_discovery(cion_client_, OnDiscoveredCB, this); if (ret != CION_ERROR_NONE) { _E("Failed to discovery to stub. error(%d)", ret); return; diff --git a/idlc/gen_cion/cpp_cion_stub_body_gen_cb.h b/idlc/gen_cion/cpp_cion_stub_body_gen_cb.h index 9a28cb5..27fb87c 100644 --- a/idlc/gen_cion/cpp_cion_stub_body_gen_cb.h +++ b/idlc/gen_cion/cpp_cion_stub_body_gen_cb.h @@ -72,7 +72,7 @@ R"__cpp_cb( void ##::Listen(std::shared_ptr<##::ServiceBase::Factory> service_factory) { service_factory_ = std::move(service_factory); - int ret = cion_server_listen(cion_server_, OnConnectionRequestCB, nullptr); + int ret = cion_server_listen(cion_server_, OnConnectionRequestCB, this); if (ret != CION_ERROR_NONE) { _E("Failed to cion_server_listen. error(%d)", ret); throw InvalidIOException(); -- 2.7.4