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. <br><br>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 ?
<br clear="all"><br>regards<br>-- <br>Roberto Saccon