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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..21c99d92022f2e48c4853fb27d19f8e59af29520 |
--- /dev/null |
+++ b/mojo/public/python/mojo/c_environment.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 libc.stdint cimport int64_t |
+ |
+ |
+cdef extern from "mojo/public/cpp/bindings/callback.h" nogil: |
+ cdef cppclass CClosure "mojo::Callback<void()>": |
+ CClosure() |
+ CClosure(CRunnable) |
+ |
+ |
+cdef extern from "mojo/public/python/src/python_system_helper.h" \ |
+ namespace "mojo" nogil: |
+ cdef CClosure BuildClosure(object) |
+ cdef void InitRunLoop() |
+ |
+ |
+cdef extern from "mojo/public/cpp/utility/run_loop.h" nogil: |
+ cdef cppclass CRunLoop "mojo::RunLoop": |
+ CRunLoop() |
+ void Run() |
+ void RunUntilIdle() |
+ void Quit() |
+ void PostDelayedTask(CClosure& task, int64_t delay) |