usb_gadget 0.6.0
usb_gadget: ^0.6.0 copied to clipboard
Expose standard or fully custom USB peripherals (gadgets) through a USB device controller (UDC) on Linux.
0.6.0 #
- FIX: Refresh OUT endpoints on enable to recover from host de-configuration, replacing dead
AioStreaminstances without requiring consumers to re-subscribe. - REFACTOR: Restructure endpoint directory layout — move
functionfs/endpoint.darttoendpoint/core.dartand relocate descriptors/events underfunctions/ffs/. - REFACTOR: Simplify
Aioinitialization inEndpointInFileandEndpointOutFileby passing file descriptors directly toAio.fromEndpointConfig. - REFACTOR: Refactor
EndpointOutFileto use aStreamControllerproxy for a stable broadcast stream across USB enable/disable cycles. - REFACTOR: Restructure kernel AIO bindings — rename
platform/aiotoplatform/libaio, introduce aLibaiowrapper with scratch arrays to minimize allocations, and add anIocbowning wrapper with factory methods for read/write ops. - REFACTOR: Relocate
AioStreamandBufferPooltolib/src/endpoint/aio/; remove seek offsets and ensure data is copied from native buffers before pool return to prevent use-after-free. - REFACTOR: Remove
AioSink, oldAioContext, and other high-level AIO abstractions in favor of the more directlibaiointerface. - FEAT: Add FFI bindings and
Epollwrapper for Linuxepollandeventfdsystem calls, supporting I/O multiplexing withcreate,add,modify,delete, andwait, pluseventfdnotification helpers. - REFACTOR: Use
DynamicLibrary.process()to access libc in errno handling.
0.5.0 #
- FIX: Various endpoint lifecycle and resource management fixes across
FunctionFsandHIDFunctionFs. - FIX: Several reliability improvements to
AioSinkaround write queue and resource release. - REFACTOR: Consolidate endpoint and resource lifecycle management into base classes.
0.4.3 #
- FIX: Add missing
fatalmethod toLoggerclass - CHORE: Update logger exports to include the
Loggerclass - CHORE: Remove the
PlatformLoggerexport
0.4.2 #
- CHORE: Export
ILoggeras public to allow custom mixin creation outside the library. - FIX: Release endpoints on disable to prevent resource leaks.
0.4.1 #
- FEAT: Add compile-time environment-based logging configuration.
- REFACTOR: Simplify log level representation.
- REFACTOR: Enhance log formatting and color handling.
- FIX: Replace hardcoded log level with environment-based constant.
0.4.0 #
- FEAT: Initial release of the package.