X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FOCProvisioningManager.h;h=add8105c043377d7bd5aef37c3f6f06a2f5cb89c;hb=1a2a7c36fdf4469b481d7c0a61a23ebb6bebd367;hp=3602cd82c095de3e8b04ba863b61b073e4466685;hpb=90959b0f2675d2e39770c1e6a02bff0e05d1a9ab;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/OCProvisioningManager.h b/resource/include/OCProvisioningManager.h old mode 100644 new mode 100755 index 3602cd8..add8105 --- a/resource/include/OCProvisioningManager.h +++ b/resource/include/OCProvisioningManager.h @@ -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.