Source

cy-cxxfwk / cy / cyfwk.pxd

Full commit
from cpython.ref cimport PyObject

cdef extern from "lib.h":
    cdef cppclass IAlg:
        void run()
        void run_impl()

    cdef IAlg* create_cy_alg()

    ctypedef void (*RunFct)(void *obj)

    cdef cppclass CyAlgBase:
        #PyObject *obj
        #RunFct fct
        
        CyAlgBase(PyObject *obj, RunFct fct)
        void set_cy_state(void* obj, RunFct fct)
        void run()
        void run_impl()
        
cdef public api IAlg* cy_create_alg()