Getting a functions address for a callback

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting a functions address for a callback

Brad Watson
Hi,

The scenerio: I want to make a dynamic c-call and one of the parameters to the call is the address of a callback function.  I've put the callback function in a shared-library thats loaded via DLD.  How do I get the function address to pass as a parameter in the dynamic c call ?

Insite into this would very much be appreciated.

Thank you kindly,

Brad Watson




 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Getting a functions address for a callback

Paolo Bonzini

> Insite into this would very much be appreciated.

"CFunctionDescriptor addressOf: 'getenv'" returns a CObject with the
address of getenv.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk