1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # distutils: language = c++
7 from libc.stdint cimport intptr_t, uint32_t, uint64_t
10 cdef extern from "mojo/public/c/system/core.h" nogil:
11 ctypedef uint32_t MojoHandle
12 ctypedef uint64_t MojoDeadline
13 ctypedef uint32_t MojoHandleSignals
16 cdef extern from "mojo/public/c/environment/async_waiter.h" nogil:
17 ctypedef intptr_t MojoAsyncWaitID
20 cdef extern from "mojo/public/python/src/common.h" \
21 namespace "mojo::python" nogil:
22 cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter":
24 MojoAsyncWaitID AsyncWait(MojoHandle,
28 void CancelWait(MojoAsyncWaitID)