1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/* * 17 * @addtogroup HdiUsbfnMtp 18 * @{ 19 * 20 * @brief Provides unified APIs for mtp services to access usb mtp/ptp drivers. 21 * 22 * A mtp service can obtain a usb mtp/ptp driver object or agent and then call APIs provided by this object or agent to 23 * transfer different types of mtp/ptp data packet. 24 * 25 * @since 4.0 26 */ 27 28/** 29 * @file UsbfnMtpTypes.idl 30 * 31 * @brief Defines the data used by the usb module, including the usb information, 32 * and reported usb data. 33 * 34 * @since 4.0 35 * @version 1.0 36 */ 37 38package ohos.hdi.usb.gadget.mtp.v1_0; 39 40struct UsbFnMtpFileSlice { 41 FileDescriptor fd; 42 long offset; 43 long length; 44 unsigned short command; 45 unsigned int transactionId; 46};