From 7e8057edd7fe9d8baeffafa6237f6fc244562f53 Mon Sep 17 00:00:00 2001 From: yuzhiqiang Date: Tue, 28 May 2024 07:07:00 +0000 Subject: [PATCH 1/2] get file descriptor modify Signed-off-by: yuzhiqiang --- usb/v1_0/IUsbInterface.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb/v1_0/IUsbInterface.idl b/usb/v1_0/IUsbInterface.idl index 25ce5eec..db6d165f 100644 --- a/usb/v1_0/IUsbInterface.idl +++ b/usb/v1_0/IUsbInterface.idl @@ -128,7 +128,7 @@ interface IUsbInterface { * @return Returns 0 if the operation is successful; returns a non-0 value if the operation fails. * @since 3.2 */ - GetFileDescriptor([in] struct UsbDev dev, [out] int fd); + GetFileDescriptor([in] struct UsbDev dev, [out] FileDescriptor fd); /* * * @brief Sets the configuration information of a USB device. -- Gitee From ca0b7c7a1cff7a22f69435330ea0fcead3a31fda Mon Sep 17 00:00:00 2001 From: yuzhiqiang Date: Thu, 13 Jun 2024 07:35:49 +0000 Subject: [PATCH 2/2] controltransfer modify Signed-off-by: yuzhiqiang --- usb/v1_0/IUsbInterface.idl | 2 +- usb/v1_0/UsbTypes.idl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usb/v1_0/IUsbInterface.idl b/usb/v1_0/IUsbInterface.idl index 7f1c255e..1876d798 100644 --- a/usb/v1_0/IUsbInterface.idl +++ b/usb/v1_0/IUsbInterface.idl @@ -130,7 +130,7 @@ interface IUsbInterface { * @deprecated since 5.0 * @useinstead ohos.hdi.usb.v1_1.IUsbInterface.GetDeviceFileDescriptor */ - GetFileDescriptor([in] struct UsbDev dev, [out] FileDescriptor fd); + GetFileDescriptor([in] struct UsbDev dev, [out] int fd); /* * * @brief Sets the configuration information of a USB device. diff --git a/usb/v1_0/UsbTypes.idl b/usb/v1_0/UsbTypes.idl index 055480eb..2786d174 100644 --- a/usb/v1_0/UsbTypes.idl +++ b/usb/v1_0/UsbTypes.idl @@ -61,6 +61,7 @@ struct UsbCtrlTransfer { int requestCmd; int value; int index; + int length; int timeout; }; -- Gitee