*/
OCStackResult OCBindResourceTypeToResource(OCResourceHandle handle,
const char *resourceTypeName);
+
+/**
+ * This function clears all bound resource types and bind newly passing
+ * resource type to resource.
+ *
+ * @param handle Handle to the resource.
+ * @param newResourceType Name of resource type. Example: "core.led".
+ *
+ * @return ::OC_STACK_OK on success, some other value upon failure.
+ */
+OCStackResult OCResetResourceTypes(OCResourceHandle handle,
+ const char *newResourceType);
+
/**
* This function binds a resource interface to a resource.
*
const char *resourceInterfaceName);
/**
+ * This function clears all bound interfaces and bind newly passing
+ * interface to resource.
+ *
+ * @param handle Handle to the resource.
+ * @param newResourceInterface Name of resource interface. Example: "core.rw".
+ *
+ * @return ::OC_STACK_OK on success, some other value upon failure.
+ */
+OCStackResult OCResetResourceInterfaces(OCResourceHandle handle,
+ const char *newResourceInterface);
+
+/**
* This function binds an entity handler to the resource.
*
* @param handle Handle to the resource that the contained resource is to be bound.