Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
|
qsr
2015/01/12 17:37:45
Didn't had time to look into this. We need to find
etiennej
2015/01/14 00:54:04
Done.
| |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # distutils: language = c++ | 5 # distutils: language = c++ |
| 6 | 6 |
| 7 from libc.stdint cimport intptr_t, uint32_t, uint64_t | 7 from libc.stdint cimport intptr_t, uint32_t, uint64_t |
| 8 | 8 |
| 9 | 9 |
| 10 cdef extern from "mojo/public/c/system/core.h" nogil: | 10 cdef extern from "mojo/public/c/system/core.h" nogil: |
| 11 ctypedef uint32_t MojoHandle | 11 ctypedef uint32_t MojoHandle |
| 12 ctypedef uint64_t MojoDeadline | 12 ctypedef uint64_t MojoDeadline |
| 13 ctypedef uint32_t MojoHandleSignals | 13 ctypedef uint32_t MojoHandleSignals |
| 14 | 14 |
| 15 | 15 |
| 16 cdef extern from "mojo/public/c/environment/async_waiter.h" nogil: | 16 cdef extern from "mojo/public/c/environment/async_waiter.h" nogil: |
| 17 ctypedef intptr_t MojoAsyncWaitID | 17 ctypedef intptr_t MojoAsyncWaitID |
| 18 | 18 |
| 19 | 19 |
| 20 cdef extern from "mojo/public/python/src/common.h" \ | 20 cdef extern from "mojo/public/python/src/common.h" \ |
| 21 namespace "mojo::python" nogil: | 21 namespace "mojo::python" nogil: |
| 22 cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter": | 22 cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter": |
| 23 PythonAsyncWaiter() | 23 PythonAsyncWaiter() |
| 24 MojoAsyncWaitID AsyncWait(MojoHandle, | 24 MojoAsyncWaitID AsyncWait(MojoHandle, |
| 25 MojoHandleSignals, | 25 MojoHandleSignals, |
| 26 MojoDeadline, | 26 MojoDeadline, |
| 27 object) | 27 object) |
| 28 void CancelWait(MojoAsyncWaitID) | 28 void CancelWait(MojoAsyncWaitID) |
| OLD | NEW |