[Gambas-user] Calling a internal function from parametres of external _callback function
Ru Vuott
vuott at ...325...
Fri Jul 5 21:09:48 CEST 2013
Ops.... thank you very much Jussi !
I had not paid proper attention to the guide !
Well, it says a "Pointer". I had assumed, but I was not sure.
Thanks.
vuott
--------------------------------------------
Ven 5/7/13, Jussi Lahtinen <jussi.lahtinen at ...626...> ha scritto:
Oggetto: Re: [Gambas-user] Calling a internal function from parametres of external _callback function
A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Cc: "Benoit" <gambas at ...1...>
Data: Venerdì 5 luglio 2013, 20:54
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
>
------------------------------------------------------------------------------
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