[Cython] Question about providing functions to existing C code
Stefan Behnel
stefan_ml at behnel.de
Fri Apr 18 16:53:56 CEST 2008
Hi,
just a quick untested idea.
Johannes Wienke wrote:
> void plug_observ_data (plugDefinition *plug, const char *ident);
>
> This is one example. My problem here is that Cython doesn't know
> anything about const. So I can't implement this function appropriately.
> Is there any way to solve this problem?
You might get away with something like
ctypedef constcharptr char* "const char*"
cdef void plug_observ_data(plugDefinition *plug, constcharptr ident)
Stefan
More information about the Cython-dev
mailing list