replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / src / OCPlatform.cpp
index e9e90a1..f4cb635 100644 (file)
@@ -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)
         {