| Index: mojo/edk/embedder/entrypoints.cc
|
| diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
|
| index 7ee0c9e53f9fcf6fe843ac688eca6ec92bd7a45a..875f1cfecc61ca2a0f02f2c85554e4558509af09 100644
|
| --- a/mojo/edk/embedder/entrypoints.cc
|
| +++ b/mojo/edk/embedder/entrypoints.cc
|
| @@ -2,6 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +// This file contains the definitions of the system functions, which are
|
| +// declared in various header files in mojo/public/c/system.
|
| +
|
| #include "mojo/edk/embedder/embedder_internal.h"
|
| #include "mojo/edk/system/core.h"
|
| #include "mojo/public/c/system/buffer.h"
|
| @@ -14,7 +17,6 @@
|
| using mojo::embedder::internal::g_core;
|
| using mojo::system::MakeUserPointer;
|
|
|
| -// Definitions of the system functions.
|
| extern "C" {
|
|
|
| MojoTimeTicks MojoGetTimeTicksNow() {
|
| @@ -104,6 +106,21 @@ MojoResult MojoEndWriteData(MojoHandle data_pipe_producer_handle,
|
| return g_core->EndWriteData(data_pipe_producer_handle, num_elements_written);
|
| }
|
|
|
| +MojoResult MojoSetDataPipeConsumerOptions(
|
| + MojoHandle data_pipe_consumer_handle,
|
| + const struct MojoDataPipeConsumerOptions* options) {
|
| + return g_core->SetDataPipeConsumerOptions(data_pipe_consumer_handle,
|
| + MakeUserPointer(options));
|
| +}
|
| +
|
| +MojoResult MojoGetDataPipeConsumerOptions(
|
| + MojoHandle data_pipe_consumer_handle,
|
| + struct MojoDataPipeConsumerOptions* options,
|
| + uint32_t options_num_bytes) {
|
| + return g_core->GetDataPipeConsumerOptions(
|
| + data_pipe_consumer_handle, MakeUserPointer(options), options_num_bytes);
|
| +}
|
| +
|
| MojoResult MojoReadData(MojoHandle data_pipe_consumer_handle,
|
| void* elements,
|
| uint32_t* num_elements,
|
|
|