dosh
January 23rd, 2009, 03:24 AM
I know how to pass a function via a pointer to another function but is there a way to pass its arguments with it. And if so can it be a variable argument list.
I notice in g_connect_signal that you give it the function name to call on the signal but you are not giving it that number of arguments, but a pointer to the data. So at somepoint in the g code it is converting the pointer to its arguments and sending that number of arguments to the function requested. I am wondering how this is done.
Hopefully this makes sense.
I notice in g_connect_signal that you give it the function name to call on the signal but you are not giving it that number of arguments, but a pointer to the data. So at somepoint in the g code it is converting the pointer to its arguments and sending that number of arguments to the function requested. I am wondering how this is done.
Hopefully this makes sense.