| 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/system/entrypoints.h" | 5 #include "mojo/system/entrypoints.h" |
| 6 | 6 |
| 7 #include "mojo/public/c/system/buffer.h" | 7 #include "mojo/public/c/system/buffer.h" |
| 8 #include "mojo/public/c/system/data_pipe.h" | 8 #include "mojo/public/c/system/data_pipe.h" |
| 9 #include "mojo/public/c/system/functions.h" | 9 #include "mojo/public/c/system/functions.h" |
| 10 #include "mojo/public/c/system/message_pipe.h" | 10 #include "mojo/public/c/system/message_pipe.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 MojoTimeTicks MojoGetTimeTicksNow() { | 34 MojoTimeTicks MojoGetTimeTicksNow() { |
| 35 return g_core->GetTimeTicksNow(); | 35 return g_core->GetTimeTicksNow(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 MojoResult MojoClose(MojoHandle handle) { | 38 MojoResult MojoClose(MojoHandle handle) { |
| 39 return g_core->Close(handle); | 39 return g_core->Close(handle); |
| 40 } | 40 } |
| 41 | 41 |
| 42 MojoResult MojoWait(MojoHandle handle, | 42 MojoResult MojoWait(MojoHandle handle, |
| 43 MojoWaitFlags flags, | 43 MojoHandleSignals signals, |
| 44 MojoDeadline deadline) { | 44 MojoDeadline deadline) { |
| 45 return g_core->Wait(handle, flags, deadline); | 45 return g_core->Wait(handle, signals, deadline); |
| 46 } | 46 } |
| 47 | 47 |
| 48 MojoResult MojoWaitMany(const MojoHandle* handles, | 48 MojoResult MojoWaitMany(const MojoHandle* handles, |
| 49 const MojoWaitFlags* flags, | 49 const MojoHandleSignals* signals, |
| 50 uint32_t num_handles, | 50 uint32_t num_handles, |
| 51 MojoDeadline deadline) { | 51 MojoDeadline deadline) { |
| 52 return g_core->WaitMany(handles, flags, num_handles, deadline); | 52 return g_core->WaitMany(handles, signals, num_handles, deadline); |
| 53 } | 53 } |
| 54 | 54 |
| 55 MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options, | 55 MojoResult MojoCreateMessagePipe(const MojoCreateMessagePipeOptions* options, |
| 56 MojoHandle* message_pipe_handle0, | 56 MojoHandle* message_pipe_handle0, |
| 57 MojoHandle* message_pipe_handle1) { | 57 MojoHandle* message_pipe_handle1) { |
| 58 return g_core->CreateMessagePipe( | 58 return g_core->CreateMessagePipe( |
| 59 options, message_pipe_handle0, message_pipe_handle1); | 59 options, message_pipe_handle0, message_pipe_handle1); |
| 60 } | 60 } |
| 61 | 61 |
| 62 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, | 62 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void** buffer, | 149 void** buffer, |
| 150 MojoMapBufferFlags flags) { | 150 MojoMapBufferFlags flags) { |
| 151 return g_core->MapBuffer(buffer_handle, offset, num_bytes, buffer, flags); | 151 return g_core->MapBuffer(buffer_handle, offset, num_bytes, buffer, flags); |
| 152 } | 152 } |
| 153 | 153 |
| 154 MojoResult MojoUnmapBuffer(void* buffer) { | 154 MojoResult MojoUnmapBuffer(void* buffer) { |
| 155 return g_core->UnmapBuffer(buffer); | 155 return g_core->UnmapBuffer(buffer); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // extern "C" | 158 } // extern "C" |
| OLD | NEW |