Add PMSingleDiscovery function for discover owned/unowned devices in specified endpoint
[platform/upstream/iotivity.git] / resource / include / OCProvisioningManager.h
old mode 100644 (file)
new mode 100755 (executable)
index 3602cd8..add8105
@@ -144,6 +144,22 @@ namespace OC
                     DeviceList_t &list);
 
             /**
+             * API is responsible for discovery of devices in specified endpoint.
+             * It will return when found one or more device even though timeout is not exceeded
+             *
+             * @param timeout Timeout in seconds, time until which function will listen to
+             *                    responses from server before returning the list of devices.
+             * @param host        address of target endpoint
+             * @param connType    connectivity type of endpoint
+             * @param list List of devices.
+             * @return ::OC_STACK_OK in case of success and other value otherwise.
+             */
+            static OCStackResult discoverSecureResource(unsigned short timeout,
+                    const std::string& host,
+                    OCConnectivityType connType,
+                    DeviceList_t &list);
+
+            /**
              * API for registering Ownership transfer methods for a particular transfer Type.
              *
              * @param oxm Ownership transfer method.