X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fsecurity%2Fprovisioning%2Finclude%2Focprovisioningmanager.h;h=986c36021fa29cffe8c7c7a624ba4fad0d4cfa30;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=f5a057e2123c60eb01abc5ffb6905eb443490fc0;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/security/provisioning/include/ocprovisioningmanager.h b/resource/csdk/security/provisioning/include/ocprovisioningmanager.h index f5a057e..986c360 100644 --- a/resource/csdk/security/provisioning/include/ocprovisioningmanager.h +++ b/resource/csdk/security/provisioning/include/ocprovisioningmanager.h @@ -47,7 +47,7 @@ OCStackResult OCInitPM(const char* dbPath); * OCMode. * * @param[in] timeout Timeout in seconds, value till which function will listen to responses from - * client before returning the list of devices. + * server before returning the list of devices. * @param[out] ppList List of candidate devices to be provisioned * @return OTM_SUCCESS in case of success and other value otherwise. */ @@ -79,7 +79,7 @@ OCStackResult OCSetOwnerTransferCallbackData(OicSecOxm_t oxm, OTMCallbackData_t* * all the device in subnet which are owned by calling provisioning client. * * @param[in] timeout Timeout in seconds, value till which function will listen to responses from - * client before returning the list of devices. + * server before returning the list of devices. * @param[out] ppList List of device owned by provisioning tool. * @return OTM_SUCCESS in case of success and other value otherwise. */ @@ -117,6 +117,19 @@ OCStackResult OCProvisionACL(void *ctx, const OCProvisionDev_t *selectedDeviceIn OCProvisionResultCB resultCallback); /** + * this function sends Direct-Pairing Configuration to a device. + * + * @param[in] ctx Application context would be returned in result callback. + * @param[in] selectedDeviceInfo Selected target device. + * @param[in] pconf PCONF pointer. + * @param[in] resultCallback callback provided by API user, callback will be called when provisioning + request recieves a response from resource server. + * @return OC_STACK_OK in case of success and other value otherwise. + */ +OCStackResult OCProvisionDirectPairing(void* ctx, const OCProvisionDev_t *selectedDeviceInfo, OicSecPconf_t *pconf, + OCProvisionResultCB resultCallback); + +/** * API to provision credential to devices. * * @param[in] ctx Application context would be returned in result callback. @@ -176,7 +189,8 @@ OCStackResult OCRemoveDevice(void* ctx, * variables pOwnedDevList and pUnownedDevList. * * @param[in] waitime Wait time for the API. The wait time will be divided by 2, and half of wait time - * will be used for unowned discovery and remaining half for owned discovery. + * will be used for unowned discovery and remaining half for owned discovery. So the wait time should be + * equal to or more than 2. * @param[out] pOwnedDevList list of owned devices. * @param[out] pUnownedDevList list of unowned devices. * @return OC_STACK_OK in case of success and other value otherwise. @@ -216,6 +230,13 @@ void OCDeleteUuidList(OCUuidList_t* pList); * @param pAcl Pointer to OicSecAcl_t structure. */ void OCDeleteACLList(OicSecAcl_t* pAcl); + +/** + * This function deletes PDACL data. + * + * @param pPdAcl Pointer to OicSecPdAcl_t structure. + */ +void OCDeletePdAclList(OicSecPdAcl_t* pPdAcl); #ifdef __WITH_X509__ /**