OLD | NEW |
| (Empty) |
1 // Copyright 2015 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. | |
4 | |
5 // Note: This header should be compilable as C. | |
6 | |
7 #ifndef MOJO_PUBLIC_C_INCLUDE_MGL_MGL_SIGNAL_SYNC_POINT_H_ | |
8 #define MOJO_PUBLIC_C_INCLUDE_MGL_MGL_SIGNAL_SYNC_POINT_H_ | |
9 | |
10 #include <MGL/mgl_types.h> | |
11 #include <mojo/macros.h> | |
12 #include <stdint.h> | |
13 | |
14 MOJO_BEGIN_EXTERN_C | |
15 | |
16 typedef void (*MGLSyncPointCallback)(void* closure); | |
17 | |
18 // MGLSignalSyncPoint signals the given sync point in the current context and | |
19 // invokes |callback| when the service side acknowleges that the sync point has | |
20 // been passed. | |
21 void MGLSignalSyncPoint(uint32_t sync_point, | |
22 MGLSignalSyncPointCallback callback, | |
23 void* closure); | |
24 | |
25 MOJO_END_EXTERN_C | |
26 | |
27 #endif // MOJO_PUBLIC_C_INCLUDE_MGL_MGL_SIGNAL_SYNC_POINT_H_ | |
OLD | NEW |