blob: bf7a7096acabb87e425d3662f5206028ede96355 [file]
// Copyright 2026 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.
//! Dynamic Linux `configfs` + `functionfs` + `dummy_hcd` gadget controller serving
//! [`DeviceCommand`] requests for `usbfs` trace recording and replay.
use std::io;
use usbfs_trace_schema::{DeviceCommand, DeviceResponse};
/// Starts the Linux FunctionFS gadget control server on `listen_addr`.
pub fn serve(_listen_addr: &str) -> io::Result<()> {
todo!("b/579597237: implement Linux FunctionFS gadget daemon")
}
/// Dispatches a single [`DeviceCommand`] against the active Linux gadget.
pub fn handle_command(_cmd: DeviceCommand) -> DeviceResponse {
todo!("b/579597237: implement Linux FunctionFS gadget command handler")
}