Chromium Code Reviews| Index: mojo/python/content_handler/c_base.pxd |
| diff --git a/mojo/python/content_handler/c_base.pxd b/mojo/python/content_handler/c_base.pxd |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..97757672003a88f7353d5940b573be24acd106c5 |
| --- /dev/null |
| +++ b/mojo/python/content_handler/c_base.pxd |
| @@ -0,0 +1,28 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +# distutils: language = c++ |
| + |
| +from cpython.buffer cimport PyBUF_CONTIG |
| +from cpython.buffer cimport PyBUF_CONTIG_RO |
| +from cpython.buffer cimport Py_buffer |
| +from cpython.buffer cimport PyBuffer_FillInfo |
| +from cpython.buffer cimport PyBuffer_Release |
| +from cpython.buffer cimport PyObject_GetBuffer |
| +from cpython.mem cimport PyMem_Malloc, PyMem_Free |
| +from libc.stdint cimport int32_t, int64_t, uint32_t, uint64_t, uintptr_t, intptr_t |
|
qsr
2015/01/07 15:14:46
Do you need all those cimports?
etiennej
2015/01/08 11:23:13
Done.
|
| + |
| +cimport c_async_waiter |
| + |
| +cdef extern from "mojo/python/content_handler/python_system_impl_helper.h" \ |
| + namespace "mojo::python" nogil: |
| + cdef cppclass PythonRunLoop "mojo::python::PythonRunLoop": |
| + PythonRunLoop() |
| + void Run() |
| + void RunUntilIdle() |
| + void Quit() |
| + void PostDelayedTask(object, int64_t) |
| + cdef c_async_waiter.PythonAsyncWaiter* NewAsyncWaiter() |
| + |
| + |