[swift-dev] Swift C enum Case Mapping

Austin Zheng austinzheng at gmail.com
Sun Jan 10 15:12:40 CST 2016


fe_type is being imported as a struct (alt-click 'fe_type' in Swift). I think if you want it to be imported as an enum you need to use the NS_ENUM macro in the definition, which might not be possible in your case.

Austin

> On Jan 10, 2016, at 1:06 PM, Ryan Lovelett via swift-dev <swift-dev at swift.org> wrote:
> 
> typedef enum fe_type {
>  FE_QPSK,
>  FE_QAM,
>  FE_OFDM,
>  FE_ATSC
> } fe_type_t;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160110/194f90ab/attachment.html>


More information about the swift-dev mailing list