OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_SYSTEM_ASYNC_WAITER_H_ | 5 #ifndef MOJO_PUBLIC_C_SYSTEM_ASYNC_WAITER_H_ |
6 #define MOJO_PUBLIC_SYSTEM_ASYNC_WAITER_H_ | 6 #define MOJO_PUBLIC_C_SYSTEM_ASYNC_WAITER_H_ |
7 | 7 |
8 #include "mojo/public/system/core.h" | 8 #include "mojo/public/c/system/core.h" |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
11 extern "C" { | 11 extern "C" { |
12 #endif | 12 #endif |
13 | 13 |
14 typedef uintptr_t MojoAsyncWaitID; | 14 typedef uintptr_t MojoAsyncWaitID; |
15 | 15 |
16 typedef void (*MojoAsyncWaitCallback)(void* closure, MojoResult result); | 16 typedef void (*MojoAsyncWaitCallback)(void* closure, MojoResult result); |
17 | 17 |
18 struct MojoAsyncWaiter { | 18 struct MojoAsyncWaiter { |
(...skipping 11 matching lines...) Expand all Loading... |
30 // Cancel an existing call to AsyncWait with the given MojoAsyncWaitID. The | 30 // Cancel an existing call to AsyncWait with the given MojoAsyncWaitID. The |
31 // corresponding MojoAsyncWaitCallback will not be called in this case. | 31 // corresponding MojoAsyncWaitCallback will not be called in this case. |
32 void (*CancelWait)(struct MojoAsyncWaiter* waiter, | 32 void (*CancelWait)(struct MojoAsyncWaiter* waiter, |
33 MojoAsyncWaitID wait_id); | 33 MojoAsyncWaitID wait_id); |
34 }; | 34 }; |
35 | 35 |
36 #ifdef __cplusplus | 36 #ifdef __cplusplus |
37 } // extern "C" | 37 } // extern "C" |
38 #endif | 38 #endif |
39 | 39 |
40 #endif // MOJO_PUBLIC_SYSTEM_ASYNC_WAITER_H_ | 40 #endif // MOJO_PUBLIC_C_SYSTEM_ASYNC_WAITER_H_ |
OLD | NEW |