Re: callbacks



GONZALOMZ a écrit :
> 
> How can i pass my own struct to a callback function ?
>  How can i convert my own struct to a gpointer ?
> 
>  Thanks.
>  Gonzalo Monrtesdeoca Zamora
> 
gint callback (..., gpointer user_data);
This should be the way to pass your struct (using the user_data).
gpointer is a define for void*.
-- 
Florent DEVIN




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]