| Index: mojo/public/python/mojo/c_environment.pxd
|
| diff --git a/mojo/public/python/mojo/c_environment.pxd b/mojo/public/python/mojo/c_environment.pxd
|
| index d720da6184a32427958c0388e087944e6b20d66c..ab9a22c47960e0733194d80a7392e3b4a189d341 100644
|
| --- a/mojo/public/python/mojo/c_environment.pxd
|
| +++ b/mojo/public/python/mojo/c_environment.pxd
|
| @@ -4,7 +4,13 @@
|
|
|
| # distutils: language = c++
|
|
|
| -from libc.stdint cimport int64_t
|
| +from libc.stdint cimport int64_t, intptr_t, uint32_t, uint64_t
|
| +
|
| +
|
| +cdef extern from "mojo/public/c/system/core.h" nogil:
|
| + ctypedef uint32_t MojoHandle
|
| + ctypedef uint64_t MojoDeadline
|
| + ctypedef uint32_t MojoHandleSignals
|
|
|
|
|
| cdef extern from "mojo/public/cpp/bindings/callback.h" nogil:
|
| @@ -13,9 +19,20 @@ cdef extern from "mojo/public/cpp/bindings/callback.h" nogil:
|
| CClosure(CRunnable)
|
|
|
|
|
| +cdef extern from "mojo/public/c/environment/async_waiter.h" nogil:
|
| + ctypedef intptr_t MojoAsyncWaitID
|
| +
|
| +
|
| cdef extern from "mojo/public/python/src/python_system_helper.h" \
|
| - namespace "mojo" nogil:
|
| + namespace "mojo::python" nogil:
|
| cdef CClosure BuildClosure(object)
|
| + cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter":
|
| + PythonAsyncWaiter()
|
| + MojoAsyncWaitID AsyncWait(MojoHandle,
|
| + MojoHandleSignals,
|
| + MojoDeadline,
|
| + object)
|
| + void CancelWait(MojoAsyncWaitID)
|
|
|
|
|
| cdef extern from "mojo/public/cpp/utility/run_loop.h" nogil:
|
| @@ -24,7 +41,8 @@ cdef extern from "mojo/public/cpp/utility/run_loop.h" nogil:
|
| void Run() except *
|
| void RunUntilIdle() except *
|
| void Quit()
|
| - void PostDelayedTask(CClosure& task, int64_t delay)
|
| + void PostDelayedTask(CClosure&, int64_t)
|
| +
|
|
|
| cdef extern from "mojo/public/cpp/environment/environment.h" nogil:
|
| cdef cppclass CEnvironment "mojo::Environment":
|
|
|