[erlang-questions] C Ports - how to deal wth C function pointers ?
Sat Apr 21 05:04:29 CEST 2007
I just stumbled upon this: C-Nodes
I guess this is the way to establish a two-way communication between an
erlang node and a c library
On 4/20/07, Roberto Saccon <> wrote:
> 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 ?
> Roberto Saccon
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions