madmachineio / SwiftIO

A Swift framework for microcontrollers abstraction layer.
https://madmachineio.github.io/SwiftIO/documentation/swiftio
MIT License
179 stars 14 forks source link

make CSwiftIO object available via private interface #39

Closed lhoward closed 2 months ago

lhoward commented 3 months ago

Make the underlying CSwiftIO object available via a @_spi(SwiftIOPrivate) interface.

This will be useful for my AsyncSwiftIO library, which needs the underlying file descriptor, and is currently accessing it using reflection (which is a hack).

lhoward commented 2 months ago

Thank you for letting me sneak this in :) I hope to repay you when we can integrate IORingSwift with Zephyr's RTIO. :)