Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(956)

Unified Diff: mojo/edk/embedder/system_impl_private_entrypoints.cc

Issue 1859123003: Add Mojo{Set,Get}DataPipeConsumerOptions() to the NaCl system thunks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/nacl/nonsfi/irt_mojo_nonsfi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/system_impl_private_entrypoints.cc
diff --git a/mojo/edk/embedder/system_impl_private_entrypoints.cc b/mojo/edk/embedder/system_impl_private_entrypoints.cc
index 2e6d3808c5dcef4d5801cd338cbf0060f8ce6e65..0e6259961104bb72bc8965a5fec9fb39418a7100 100644
--- a/mojo/edk/embedder/system_impl_private_entrypoints.cc
+++ b/mojo/edk/embedder/system_impl_private_entrypoints.cc
@@ -193,6 +193,27 @@ MojoResult MojoSystemImplEndWriteData(MojoSystemImpl system,
return core->EndWriteData(data_pipe_producer_handle, num_elements_written);
}
+MojoResult MojoSystemImplSetDataPipeConsumerOptions(
+ MojoSystemImpl system,
+ MojoHandle data_pipe_consumer_handle,
+ const struct MojoDataPipeConsumerOptions* options) {
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
+ DCHECK(core);
+ return core->SetDataPipeConsumerOptions(data_pipe_consumer_handle,
+ MakeUserPointer(options));
+}
+
+MojoResult MojoSystemImplGetDataPipeConsumerOptions(
+ MojoSystemImpl system,
+ MojoHandle data_pipe_consumer_handle,
+ struct MojoDataPipeConsumerOptions* options,
+ uint32_t options_num_bytes) {
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
+ DCHECK(core);
+ return core->GetDataPipeConsumerOptions(
+ data_pipe_consumer_handle, MakeUserPointer(options), options_num_bytes);
+}
+
MojoResult MojoSystemImplReadData(MojoSystemImpl system,
MojoHandle data_pipe_consumer_handle,
void* elements,
« no previous file with comments | « no previous file | mojo/nacl/nonsfi/irt_mojo_nonsfi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698