[Cython] Wrapping callbacks
Stefan Behnel
stefan_ml at behnel.de
Mon Feb 23 10:55:23 CET 2009
Anatoly A. Kazantsev wrote:
> I'm trying to wrap function with callback parameter:
>
> error_t fshelp_start_translator (fshelp_open_fn_t underlying_open_fn, void
> *cookie, char *name, char *argz, int argz_len, int timeout, fsys_t
> *control)
>
> where fshelp_open_fn_t is
>
> typedef error_t (*fshelp_open_fn_t) (int flags, file_t *node,
> mach_msg_type_name_t *node_type, task_t, void *cookie)
Have you looked at the callback example in the Cython distribution?
http://hg.cython.org/cython-devel/file/tip/Demos/callback
Stefan
More information about the Cython-dev
mailing list