[cpp cion] omitted handle for callback user_data 00/265300/2
authorInkyun Kil <inkyun.kil@samsung.com>
Thu, 14 Oct 2021 08:32:31 +0000 (17:32 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Thu, 14 Oct 2021 08:43:12 +0000 (08:43 +0000)
Change-Id: Iae9649d1a4558bf2a6d855b14afd38e2c0e58847
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
idlc/gen_cion/cpp_cion_proxy_body_gen_cb.h
idlc/gen_cion/cpp_cion_stub_body_gen_cb.h

index c95685f3de3f0a5265a602a0e7df8a55e3093626..3de85d9a039c199013564317607164c4a318877d 100644 (file)
@@ -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;
index 9a28cb530ebc7619225f537eabbb26c4264c0319..27fb87c1e35ebf05a4c3100977829b2fed0d007b 100644 (file)
@@ -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();