[Cython] Question about providing functions to existing C code

Stefan Behnel stefan_ml at behnel.de
Fri Apr 18 17:14:46 CEST 2008


Hi,

Johannes Wienke wrote:
> Am 04/18/2008 03:07 PM schrieb Stefan Behnel:
>> Ah, ok. Two things here: 2) you will have to transmit the function pointers to
>> the plugin (likely through a struct) and 1) you have to declare a Cython
>> function with the same signature that it has in the header file (which is what
>> you are asking here).
> 
> 1) is clear. But what do you mean with 2) ? Which function pointers?

I just meant that there is likely some interface in the plugin that you use to
tell it where to find your functions, which usually involves some way of
passing the pointers to your functions (or passing the functions by reference,
if you prefer).

But you know that better than I do.

Stefan



More information about the Cython-dev mailing list