[IOT-1329] Include OCResetDevice in header
authorJongmin Choi <jminl.choi@samsung.com>
Mon, 26 Sep 2016 08:53:50 +0000 (17:53 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 26 Sep 2016 09:59:47 +0000 (09:59 +0000)
Include OCResetDevice in ocprovisioningmanager.h

Change-Id: I3f7c5be85d81a7fac75ad66fb945c8e23c41e343
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12201
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/include/ocprovisioningmanager.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 925c81a..e0f1422
@@ -233,6 +233,21 @@ OCStackResult OCRemoveDeviceWithUuid(void* ctx,
                                      const OicUuid_t* pTargetUuid,\r
                                      OCProvisionResultCB resultCallback);\r
 \r
+/*\r
+ * Function to reset the target device.\r
+ * This function will remove credential and ACL of target device from all devices in subnet.\r
+ *\r
+ * @param[in] ctx Application context would be returned in result callback\r
+ * @param[in] waitTimeForOwnedDeviceDiscovery Maximum wait time for owned device discovery.(seconds)\r
+ * @param[in] pTargetDev Device information to be revoked.\r
+ * @param[in] resultCallback callback provided by API user, callback will be called when\r
+ *            credential revocation is finished.\r
+ * @return  OC_STACK_OK in case of success and other value otherwise.\r
+ */\r
+OCStackResult OCResetDevice(void* ctx, unsigned short waitTimeForOwnedDeviceDiscovery,\r
+                            const OCProvisionDev_t* pTargetDev,\r
+                            OCProvisionResultCB resultCallback);\r
+\r
 /**\r
  * API to get status of all the devices in current subnet. The status include endpoint information\r
  * and doxm information which can be extracted duing owned and unowned discovery. Along with this\r