Change-Id: Iae9649d1a4558bf2a6d855b14afd38e2c0e58847
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
}
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;
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();