Source

cy-cxxfwk / cy / cyfwk.pxd

from cpython.ref cimport PyObject

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

    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()
        
cdef public api IAlg* cy_create_alg()