[fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
Hi, I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. Here's an example of an exported struct: struct SLPlayItf_ { SLresult (*SetPlayState) ( SLPlayItf self, SLuint32 state

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Jonas Maebe
On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. Here's an example of an exported struct: struct SLPlayItf_ { SLresult (*SetPlayState) (

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
On 01/28/2014 12:26 PM, Jonas Maebe wrote: On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. If they are exposed as structs, you should translate them into