And also change the name of callback of discoverResource
Change-Id: I36cfe430f611467b350f83d61ad9484bf422cc89
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1390
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
PrimitiveResource& operator=(PrimitiveResource&&) const = delete;
};
- using FindCallback = std::function<void(std::shared_ptr<PrimitiveResource>)>;
+ using DiscoverCallback = std::function<void(std::shared_ptr<PrimitiveResource>)>;
void discoverResource(const std::string& host, const std::string& resourceURI,
- OCConnectivityType connectivityType, FindCallback resourceHandler);
+ OCConnectivityType, DiscoverCallback);
}
}
}
void discoverResource(const std::string& host, const std::string& resourceURI,
- OCConnectivityType connectivityType, FindCallback resourceHandler)
+ OCConnectivityType connectivityType, DiscoverCallback callback)
{
OC::OCPlatform::findResource(host, resourceURI, connectivityType,
- std::bind(&PrimitiveResource::create, std::placeholders::_1));
+ std::bind(callback,
+ std::bind(&PrimitiveResource::create, std::placeholders::_1)));
}
}