<p>Am 18.06.2016 14:20 schrieb "Koenraad Lelong" <<a href="mailto:lazarus2@de-brouwerij.be">lazarus2@de-brouwerij.be</a>>:<br>
><br>
> Hi,<br>
><br>
> I'm trying to port pigpio to fpc (<a href="http://abyz.co.uk/rpi/pigpio/">http://abyz.co.uk/rpi/pigpio/</a>).<br>
> h2pas has a problem with this :<br>
> c : typedef void *(gpioThreadFunc_t) (void *);<br>
> How would this be translated to Pascal ?<br>
> I know it's a function without result (= procedure), but what about the paramater ?<br>
> Later that function/procedure is used like this :<br>
> function gpioStartThread(f:gpioThreadFunc_t; userdata:pointer):Ppthread_t;cdecl;external;<br>
><br>
><br>
> I also have a doubt about this :<br>
><br>
> c : typedef void (*gpioTimerFunc_t)    (void);<br>
> Pascal : gpioTimerFunc_t = procedure (_para1:pointer);cdecl;<br>
><br>
> Is this OK ?<br>
><br>
> I'm not fluent with c, even less with such typedef's.</p>
<p>Yes, that should be correct.</p>
<p>Regards,<br>
Sven</p>