replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / csdk / security / provisioning / include / internal / multipleownershiptransfermanager.h
index cd35605..ea571d4 100644 (file)
@@ -92,7 +92,7 @@ OCStackResult MOTProvisionPreconfigPIN(void *ctx, const OCProvisionDev_t *target
  *
  * @param[in] ctx Application context would be returned in result callback
  * @param[in] selectedDeviceList linked list of multiple ownership transfer candidate devices.
- * @param[in] resultCB Result callback function to be invoked when multiple ownership transfer finished.
+ * @param[in] resultCallback Result callback function to be invoked when multiple ownership transfer finished.
  * @return OC_STACK_OK in case of success and other value otherwise.
  */
 OCStackResult MOTDoOwnershipTransfer(void* ctx,
@@ -111,6 +111,21 @@ OCStackResult MOTDoOwnershipTransfer(void* ctx,
 OCStackResult MOTAddPreconfigPIN(const OCProvisionDev_t *targetDeviceInfo,
                                  const char* preconfPIN, size_t preconfPINLen);
 
+
+/**
+ * API to remove sub-owner from resource server
+ *
+ * @param[in] ctx Application context would be returned in result callback
+ * @param[in] targetDeviceInfo Selected target device.
+ * @param[in] subOwner sub-owner UUID to be removed
+ * @param[in] resultCallback callback provided by API user, callback will be invoked when
+ *            DELETE 'subowneruuid' request recieves a response from resource server.
+ * @return OC_STACK_OK in case of success and other value otherwise.
+ */
+OCStackResult MOTRemoveSubOwner(void* ctx,
+                                const OCProvisionDev_t *targetDeviceInfo,
+                                const OicUuid_t* subOwner,
+                                OCProvisionResultCB resultCallback);
 #ifdef __cplusplus
 }
 #endif