mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 16:35:04 +01:00

Circular imports make import pxd's order sensitive, and violating this order results in hard to understand errors. As far as I can tell, this rearrangement removes the circular nature, and has no other side affects. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
19 lines
556 B
Cython
19 lines
556 B
Cython
from cpython.ref cimport PyObject
|
|
from libcpp cimport bool
|
|
|
|
cdef extern from "capnp/helpers/capabilityHelper.h":
|
|
cppclass PythonInterfaceDynamicImpl:
|
|
PythonInterfaceDynamicImpl(PyObject *)
|
|
|
|
cdef extern from "capnp/helpers/capabilityHelper.h":
|
|
void reraise_kj_exception()
|
|
cdef cppclass PyRefCounter:
|
|
PyRefCounter(PyObject *)
|
|
|
|
cdef extern from "capnp/helpers/rpcHelper.h":
|
|
cdef cppclass ErrorHandler:
|
|
pass
|
|
|
|
cdef extern from "capnp/helpers/asyncHelper.h":
|
|
cdef cppclass PyEventPort:
|
|
PyEventPort(PyObject *)
|