[erlang-questions] C Ports - how to deal wth C function pointers ?

Roberto Saccon rsaccon@REDACTED
Sat Apr 21 01:23:46 CEST 2007


I am experimenting with port drivers (building a port driver for cairo
graphics library). Everything goes well as long as I pass simple arguments
to call my c library.

But I need to pass a function pointer to the library. And here comes my
problem. The c library now calls that function. How can I pass its result
back to Erlang ? Is there a way the c-side can initiate the communication ?

regards
-- 
Roberto Saccon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070420/fda35114/attachment.htm>


More information about the erlang-questions mailing list