| 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 27 matching lines...) Expand all Loading... |
| 38 MojoResult MojoWaitManyImpl(const MojoHandle* handles, | 38 MojoResult MojoWaitManyImpl(const MojoHandle* handles, |
| 39 const MojoHandleSignals* signals, | 39 const MojoHandleSignals* signals, |
| 40 uint32_t num_handles, | 40 uint32_t num_handles, |
| 41 MojoDeadline deadline, | 41 MojoDeadline deadline, |
| 42 uint32_t* result_index, | 42 uint32_t* result_index, |
| 43 MojoHandleSignalsState* signals_states) { | 43 MojoHandleSignalsState* signals_states) { |
| 44 return g_core->WaitMany(handles, signals, num_handles, deadline, result_index, | 44 return g_core->WaitMany(handles, signals, num_handles, deadline, result_index, |
| 45 signals_states); | 45 signals_states); |
| 46 } | 46 } |
| 47 | 47 |
| 48 MojoResult MojoCreateWatcherImpl(MojoWatcherCallback callback, | 48 MojoResult MojoWatchImpl(MojoHandle handle, |
| 49 MojoHandle* watcher_handle) { | 49 MojoHandleSignals signals, |
| 50 return g_core->CreateWatcher(callback, watcher_handle); | 50 MojoWatchCallback callback, |
| 51 uintptr_t context) { |
| 52 return g_core->Watch(handle, signals, callback, context); |
| 51 } | 53 } |
| 52 | 54 |
| 53 MojoResult MojoArmWatcherImpl(MojoHandle watcher_handle, | 55 MojoResult MojoCancelWatchImpl(MojoHandle handle, uintptr_t context) { |
| 54 uint32_t* num_ready_contexts, | 56 return g_core->CancelWatch(handle, context); |
| 55 uintptr_t* ready_contexts, | |
| 56 MojoResult* ready_results, | |
| 57 MojoHandleSignalsState* ready_signals_states) { | |
| 58 return g_core->ArmWatcher(watcher_handle, num_ready_contexts, ready_contexts, | |
| 59 ready_results, ready_signals_states); | |
| 60 } | |
| 61 | |
| 62 MojoResult MojoWatchImpl(MojoHandle watcher_handle, | |
| 63 MojoHandle handle, | |
| 64 MojoHandleSignals signals, | |
| 65 uintptr_t context) { | |
| 66 return g_core->Watch(watcher_handle, handle, signals, context); | |
| 67 } | |
| 68 | |
| 69 MojoResult MojoCancelWatchImpl(MojoHandle watcher_handle, uintptr_t context) { | |
| 70 return g_core->CancelWatch(watcher_handle, context); | |
| 71 } | 57 } |
| 72 | 58 |
| 73 MojoResult MojoAllocMessageImpl(uint32_t num_bytes, | 59 MojoResult MojoAllocMessageImpl(uint32_t num_bytes, |
| 74 const MojoHandle* handles, | 60 const MojoHandle* handles, |
| 75 uint32_t num_handles, | 61 uint32_t num_handles, |
| 76 MojoAllocMessageFlags flags, | 62 MojoAllocMessageFlags flags, |
| 77 MojoMessageHandle* message) { | 63 MojoMessageHandle* message) { |
| 78 return g_core->AllocMessage(num_bytes, handles, num_handles, flags, message); | 64 return g_core->AllocMessage(num_bytes, handles, num_handles, flags, message); |
| 79 } | 65 } |
| 80 | 66 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 MojoBeginReadDataImpl, | 280 MojoBeginReadDataImpl, |
| 295 MojoEndReadDataImpl, | 281 MojoEndReadDataImpl, |
| 296 MojoCreateSharedBufferImpl, | 282 MojoCreateSharedBufferImpl, |
| 297 MojoDuplicateBufferHandleImpl, | 283 MojoDuplicateBufferHandleImpl, |
| 298 MojoMapBufferImpl, | 284 MojoMapBufferImpl, |
| 299 MojoUnmapBufferImpl, | 285 MojoUnmapBufferImpl, |
| 300 MojoCreateWaitSetImpl, | 286 MojoCreateWaitSetImpl, |
| 301 MojoAddHandleImpl, | 287 MojoAddHandleImpl, |
| 302 MojoRemoveHandleImpl, | 288 MojoRemoveHandleImpl, |
| 303 MojoGetReadyHandlesImpl, | 289 MojoGetReadyHandlesImpl, |
| 304 MojoCreateWatcherImpl, | |
| 305 MojoWatchImpl, | 290 MojoWatchImpl, |
| 306 MojoCancelWatchImpl, | 291 MojoCancelWatchImpl, |
| 307 MojoArmWatcherImpl, | |
| 308 MojoFuseMessagePipesImpl, | 292 MojoFuseMessagePipesImpl, |
| 309 MojoWriteMessageNewImpl, | 293 MojoWriteMessageNewImpl, |
| 310 MojoReadMessageNewImpl, | 294 MojoReadMessageNewImpl, |
| 311 MojoAllocMessageImpl, | 295 MojoAllocMessageImpl, |
| 312 MojoFreeMessageImpl, | 296 MojoFreeMessageImpl, |
| 313 MojoGetMessageBufferImpl, | 297 MojoGetMessageBufferImpl, |
| 314 MojoWrapPlatformHandleImpl, | 298 MojoWrapPlatformHandleImpl, |
| 315 MojoUnwrapPlatformHandleImpl, | 299 MojoUnwrapPlatformHandleImpl, |
| 316 MojoWrapPlatformSharedBufferHandleImpl, | 300 MojoWrapPlatformSharedBufferHandleImpl, |
| 317 MojoUnwrapPlatformSharedBufferHandleImpl, | 301 MojoUnwrapPlatformSharedBufferHandleImpl, |
| 318 MojoNotifyBadMessageImpl, | 302 MojoNotifyBadMessageImpl, |
| 319 MojoGetPropertyImpl}; | 303 MojoGetPropertyImpl}; |
| 320 return system_thunks; | 304 return system_thunks; |
| 321 } | 305 } |
| 322 | 306 |
| 323 } // namespace edk | 307 } // namespace edk |
| 324 } // namespace mojo | 308 } // namespace mojo |
| OLD | NEW |