blob: 7d86e4b0c85b4b9b448b7f32e75b4fded2068e3e [file] [log] [blame]
# 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 intptr_t, uint32_t, uint64_t
cdef extern from "mojo/system/handle.h" nogil:
ctypedef uint32_t MojoHandle
ctypedef uint32_t MojoHandleSignals
cdef extern from "mojo/system/time.h" nogil:
ctypedef uint64_t MojoDeadline
cdef extern from "mojo/environment/async_waiter.h" nogil:
ctypedef intptr_t MojoAsyncWaitID
cdef extern from "mojo/public/python/src/common.h" \
namespace "mojo::python" nogil:
cdef cppclass PythonAsyncWaiter "mojo::python::PythonAsyncWaiter":
PythonAsyncWaiter()
MojoAsyncWaitID AsyncWait(MojoHandle,
MojoHandleSignals,
MojoDeadline,
object)
void CancelWait(MojoAsyncWaitID)