| // Copyright 2020 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.driver.framework; |
| |
| using fuchsia.url; |
| |
| using zx; |
| |
| /// Driver matched by the driver index. |
| table MatchedDriver { |
| /// URL of the driver. |
| 1: string:fuchsia.url.MAX_URL_LENGTH url; |
| |
| /// Node index for a composite driver (optional). |
| 2: uint32 node_index; |
| |
| /// Total number of nodes for a composite driver (optional). |
| 3: uint32 num_nodes; |
| }; |
| |
| /// Protocol through which the driver index can be queried. |
| [Discoverable] |
| protocol DriverIndex { |
| /// Match a set of device arguments to a driver package URL. |
| MatchDriver(NodeAddArgs args) -> (MatchedDriver driver) error zx.status; |
| }; |