diff --git a/usb/v2_0/IUsbHostInterface.idl b/usb/v2_0/IUsbHostInterface.idl index 451e9c9739c39b82aff1962aaf0f399d58979812..14be5553d33981a49d547d54b15e77b7c8884dd9 100644 --- a/usb/v2_0/IUsbHostInterface.idl +++ b/usb/v2_0/IUsbHostInterface.idl @@ -153,6 +153,33 @@ interface IUsbHostInterface { */ ManageInterface([in] struct UsbDev dev, [in] unsigned char interfaceid, [in] boolean disable); + /* * + * @brief Manage the authorization of the USB device. + * + * @param devNum Indicates the bus number of the USB device. + * @param devAddr Indicates the USB device address. + * @param authorized Indicates whether to authorize the USB device. + * + * @return Returns 0 if the operation is successful; returns a non-0 value if the operation fails. + * @since 6.0 + * @version 1.0 + */ + UsbDeviceAuthorize([in] unsigned char busNum, [in] unsigned char devAddr, [in] boolean authorized); + + /* * + * @brief Manage the authorization of the interface of the USB device. + * + * @param dev Indicates the USB device. + * @param configId Indicates the config ID of the target interface. + * @param interfaceId Indicates the ID of the target interface. + * @param authorized Indicates whether to authorize the interface. + * + * @return Returns 0 if the operation is successful; returns a non-0 value if the operation fails. + * @since 6.0 + * @version 1.0 + */ + UsbInterfaceAuthorize([in] struct UsbDev dev, [in] unsigned char configId, [in] unsigned char interfaceId, [in] boolean authorized); + /* * * @brief Clear the halt status for an endpoint. *