OLD | NEW |
| (Empty) |
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. | |
4 | |
5 # distutils: language = c++ | |
6 | |
7 from libc.stdint cimport intptr_t, uint32_t, uint64_t | |
8 | |
9 | |
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 | |
14 | |
15 | |
16 cdef extern from "mojo/public/c/environment/async_waiter.h" nogil: | |
17 ctypedef intptr_t MojoAsyncWaitID | |
18 | |
19 | |
20 cdef extern from "mojo/public/python/src/common.h" \ | |
21 namespace "mojo::python" nogil: | |
22 cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter": | |
23 PythonAsyncWaiter() | |
24 MojoAsyncWaitID AsyncWait(MojoHandle, | |
25 MojoHandleSignals, | |
26 MojoDeadline, | |
27 object) | |
28 void CancelWait(MojoAsyncWaitID) | |
OLD | NEW |