I just stumbled upon this: C-Nodes<br><br><a href="http://www.erlang.org/doc/doc-5.5.4/doc/tutorial/cnode.html">http://www.erlang.org/doc/doc-5.5.4/doc/tutorial/cnode.html</a><br><br>I guess this is the way to establish a two-way communication between an erlang node and a c library
<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Roberto Saccon</b> <<a href="mailto:rsaccon@gmail.com">rsaccon@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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><span class="sg">Roberto Saccon
</span></blockquote></div><br><br clear="all"><br>-- <br>Roberto Saccon