[Gambas-user] Calling a internal function from parametres of external _callback function
Jussi Lahtinen
jussi.lahtinen at ...626...
Fri Jul 5 20:54:26 CEST 2013
http://gambasdoc.org/help/lang/extdecl?v3
Jussi
On Fri, Jul 5, 2013 at 6:20 PM, Ru Vuott <vuott at ...325...> wrote:
> Hello,
>
> Wanting to use the Jack API, and studying examples written in C, I meet
> some external "callback" functions that within their parameters have the
> reference to another function (this internal to the code).
>
> Here an exemple of those external Jack API "callback" functions:
>
> jack_set_process_callback(client, process_callback, 0);
>
> This function tells the Jack server to call process_callback whenever
> there is work be done, passing arg as the second argument.
>
> Well, I'ld like to use this particular functions, but I do not know how I
> *have to declare* them when I use Extern:
>
> Private Extern jack_set_process_callback(Pclient As Pointer,
> ...???.... As ....???..., Intarg As Integer)
>
> In fact something like "....As Function" is not possible.
>
>
> Suggestions ?
>
> Regards
> vuottt
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list