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 #include "mojo/edk/embedder/entrypoints.h" | 5 #include "mojo/edk/embedder/entrypoints.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "mojo/edk/embedder/embedder_internal.h" | 9 #include "mojo/edk/embedder/embedder_internal.h" |
10 #include "mojo/edk/system/core.h" | 10 #include "mojo/edk/system/core.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 extern "C" { | 21 extern "C" { |
22 | 22 |
23 MojoTimeTicks MojoGetTimeTicksNowImpl() { | 23 MojoTimeTicks MojoGetTimeTicksNowImpl() { |
24 return g_core->GetTimeTicksNow(); | 24 return g_core->GetTimeTicksNow(); |
25 } | 25 } |
26 | 26 |
27 MojoResult MojoCloseImpl(MojoHandle handle) { | 27 MojoResult MojoCloseImpl(MojoHandle handle) { |
28 return g_core->Close(handle); | 28 return g_core->Close(handle); |
29 } | 29 } |
30 | 30 |
| 31 MojoResult MojoQueryHandleSignalsStateImpl( |
| 32 MojoHandle handle, |
| 33 MojoHandleSignalsState* signals_state) { |
| 34 return g_core->QueryHandleSignalsState(handle, signals_state); |
| 35 } |
| 36 |
31 MojoResult MojoWaitImpl(MojoHandle handle, | 37 MojoResult MojoWaitImpl(MojoHandle handle, |
32 MojoHandleSignals signals, | 38 MojoHandleSignals signals, |
33 MojoDeadline deadline, | 39 MojoDeadline deadline, |
34 MojoHandleSignalsState* signals_state) { | 40 MojoHandleSignalsState* signals_state) { |
35 return g_core->Wait(handle, signals, deadline, signals_state); | 41 return g_core->Wait(handle, signals, deadline, signals_state); |
36 } | 42 } |
37 | 43 |
38 MojoResult MojoWaitManyImpl(const MojoHandle* handles, | 44 MojoResult MojoWaitManyImpl(const MojoHandle* handles, |
39 const MojoHandleSignals* signals, | 45 const MojoHandleSignals* signals, |
40 uint32_t num_handles, | 46 uint32_t num_handles, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 280 |
275 } // extern "C" | 281 } // extern "C" |
276 | 282 |
277 namespace mojo { | 283 namespace mojo { |
278 namespace edk { | 284 namespace edk { |
279 | 285 |
280 MojoSystemThunks MakeSystemThunks() { | 286 MojoSystemThunks MakeSystemThunks() { |
281 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), | 287 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), |
282 MojoGetTimeTicksNowImpl, | 288 MojoGetTimeTicksNowImpl, |
283 MojoCloseImpl, | 289 MojoCloseImpl, |
| 290 MojoQueryHandleSignalsStateImpl, |
284 MojoWaitImpl, | 291 MojoWaitImpl, |
285 MojoWaitManyImpl, | 292 MojoWaitManyImpl, |
286 MojoCreateMessagePipeImpl, | 293 MojoCreateMessagePipeImpl, |
287 MojoWriteMessageImpl, | 294 MojoWriteMessageImpl, |
288 MojoReadMessageImpl, | 295 MojoReadMessageImpl, |
289 MojoCreateDataPipeImpl, | 296 MojoCreateDataPipeImpl, |
290 MojoWriteDataImpl, | 297 MojoWriteDataImpl, |
291 MojoBeginWriteDataImpl, | 298 MojoBeginWriteDataImpl, |
292 MojoEndWriteDataImpl, | 299 MojoEndWriteDataImpl, |
293 MojoReadDataImpl, | 300 MojoReadDataImpl, |
(...skipping 21 matching lines...) Expand all Loading... |
315 MojoUnwrapPlatformHandleImpl, | 322 MojoUnwrapPlatformHandleImpl, |
316 MojoWrapPlatformSharedBufferHandleImpl, | 323 MojoWrapPlatformSharedBufferHandleImpl, |
317 MojoUnwrapPlatformSharedBufferHandleImpl, | 324 MojoUnwrapPlatformSharedBufferHandleImpl, |
318 MojoNotifyBadMessageImpl, | 325 MojoNotifyBadMessageImpl, |
319 MojoGetPropertyImpl}; | 326 MojoGetPropertyImpl}; |
320 return system_thunks; | 327 return system_thunks; |
321 } | 328 } |
322 | 329 |
323 } // namespace edk | 330 } // namespace edk |
324 } // namespace mojo | 331 } // namespace mojo |
OLD | NEW |