Re: [swift-users] Importing empty C structs

2017-04-18 Thread Rick Mann via swift-users
> On Apr 18, 2017, at 09:11 , Joe Groff wrote: > > >> On Apr 17, 2017, at 6:19 PM, Rick Mann via swift-users >> wrote: >> >> I'm trying to make a module out of a C library and header file. It has at >> least one empty struct: >> >> struct lgs_context_t {}; >> >> and a function: >> >> LGS

Re: [swift-users] Importing empty C structs

2017-04-18 Thread Joe Groff via swift-users
> On Apr 17, 2017, at 6:19 PM, Rick Mann via swift-users > wrote: > > I'm trying to make a module out of a C library and header file. It has at > least one empty struct: > > struct lgs_context_t {}; > > and a function: > > LGS_EXPORT struct lgs_context_t* lgs_init(const lgs_context_params_t

[swift-users] Importing empty C structs

2017-04-17 Thread Rick Mann via swift-users
I'm trying to make a module out of a C library and header file. It has at least one empty struct: struct lgs_context_t {}; and a function: LGS_EXPORT struct lgs_context_t* lgs_init(const lgs_context_params_t* params); Swift sees the function, I can call it and assign the result to a variable,