G
glennpierce
Hi I was wondering if anyone knows of a method to achieve the creation of
events in c. currently I use a function pointer to call one callback.
However, I really need to map the function pointer or event to multiple
callback functions.
I thought I would have functions like NewSignal, EmitSignal and
ConnectSignal but I don't know how I would construct function pointers at
any other time other than compile time. Each new signal would require a
function pointer that takes different arguments, how would you marshall
data to these different function pointers?
I know there are toolkits like GTK that provide this but I am stuck using
Labwindows which provides very little and didn't want systems that provide
their own event loops etc.
Any help it much appreciated.
Thanks
Glenn
events in c. currently I use a function pointer to call one callback.
However, I really need to map the function pointer or event to multiple
callback functions.
I thought I would have functions like NewSignal, EmitSignal and
ConnectSignal but I don't know how I would construct function pointers at
any other time other than compile time. Each new signal would require a
function pointer that takes different arguments, how would you marshall
data to these different function pointers?
I know there are toolkits like GTK that provide this but I am stuck using
Labwindows which provides very little and didn't want systems that provide
their own event loops etc.
Any help it much appreciated.
Thanks
Glenn