blob: 89f0cc0fe01e514d5b50ee03f9cfbaa1bb4a2f87 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.hardware.usb.composite;
using zircon.hw.usb;
using zx;
[Layout = "ddk-protocol"]
protocol UsbComposite {
/// Returns the length of the additional descriptor list.
GetAdditionalDescriptorLength() -> (usize length);
/// Returns the USB descriptors following the interface's existing descriptors.
GetAdditionalDescriptorList() -> (zx.status s, vector<uint8> desc);
/// Marks the interface as claimed and appends the interface descriptor to the
/// interface's existing descriptors.
ClaimInterface(zircon.hw.usb.UsbInterfaceDescriptor desc, uint32 length) -> (zx.status s);
};