ServiceWorker: Consolidate version manipulation functions in SWProviderContext
[chromium-blink-merge.git] / mojo / public / python / c_async_waiter.pxd
blobe2c3048ae0647d6e54f8b4ac0cffa02e0008f722
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.
5 # distutils: language = c++
7 from libc.stdint cimport intptr_t, uint32_t, uint64_t
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
16 cdef extern from "mojo/public/c/environment/async_waiter.h"  nogil:
17   ctypedef intptr_t MojoAsyncWaitID
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)