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

Re: gEDA-user: Please test new grids for GTK PCB



2011/3/10 jpka <jopka@xxxxxxxxx>:

> Great! Thank you :)
> The last question is, when i find correct callback signature, passed
> arguments absolutely cannot be modified in any way, including adding
> random arguments, right?

You can pass whatever you want (if it is known at callback
registration time) as gpointer user_data.
For example create a structure to hold pointers to everything you need
in callback, then pass pointer to that structure as user_data.
Of course the structure must not be allocated on stack.

-- 
Krzysztof KoÅciuszkiewicz
"Simplicity is the ultimate sophistication" -- Leonardo da Vinci


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user