X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fsrc%2FOCPlatform.cpp;h=f4cb6357bb43a470bb019cfdb617787b809ff621;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=e9e90a122f31861788d3938cb4863b32d6d06358;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/src/OCPlatform.cpp b/resource/src/OCPlatform.cpp index e9e90a1..f4cb635 100644 --- a/resource/src/OCPlatform.cpp +++ b/resource/src/OCPlatform.cpp @@ -32,9 +32,19 @@ namespace OC { namespace OCPlatform { - void Configure(const PlatformConfig& config) + OCStackResult Configure(const PlatformConfig& config) { - OCPlatform_impl::Configure(config); + return OCPlatform_impl::Configure(config); + } + + OCStackResult start() + { + return OCPlatform_impl::Instance().start(); + } + + OCStackResult stop() + { + return OCPlatform_impl::Instance().stop(); } OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler) @@ -131,6 +141,14 @@ namespace OC connectivityType, resourceHandler, QoS); } + OCStackResult findResourceList(const std::string& host, const std::string& resourceURI, + OCConnectivityType connectivityType, FindResListCallback resourceHandler, + FindErrorCallback errorHandler, QualityOfService QoS) + { + return OCPlatform_impl::Instance().findResourceList(host, resourceURI, + connectivityType, resourceHandler, errorHandler, QoS); + } + OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI, OCConnectivityType connectivityType, @@ -336,6 +354,18 @@ namespace OC connectivityType); } #endif // WITH_CLOUD +#ifdef TCP_ADAPTER + OCStackResult findKeepAliveResource(std::string host, KeepAliveCallback resultCallback) + { + return OCPlatform_impl::Instance().findKeepAliveResource(host, resultCallback); + } + + OCStackResult sendKeepAliveRequest(std::string host, const OCRepresentation& rep, + KeepAliveCallback pingHandler) + { + return OCPlatform_impl::Instance().sendKeepAliveRequest(host, rep, pingHandler); + } +#endif OCStackResult getDeviceId(OCUUIdentity *deviceId) {