- Not recommended to be used in new designs - Just pollutes warning messages during compilation (hiding ones that should be fixed) - Updated test code to use bootstrap - Sped up some of the test code that was just sleeping while waiting for the server (now polling for the socket)
28 lines
858 B
Cython
28 lines
858 B
Cython
from cpython.ref cimport PyObject
|
|
from capnp.includes.capnp_cpp cimport AsyncIoStream, WaitScope
|
|
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 *)
|
|
|
|
cdef extern from "capnp/helpers/asyncIoHelper.h":
|
|
cdef cppclass AsyncIoStreamReadHelper:
|
|
AsyncIoStreamReadHelper(AsyncIoStream *, WaitScope *, size_t)
|
|
bool poll()
|
|
size_t read_size()
|
|
void* read_buffer()
|