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

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

Issue 1876353006: Add Mojo{Set,Get}DataPipeProducerOptions() to the NaCl system thunks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: gah 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 0e6259961104bb72bc8965a5fec9fb39418a7100..1ec1da97b713d523f1d6116f50d20f7a260fe91a 100644
--- a/mojo/edk/embedder/system_impl_private_entrypoints.cc
+++ b/mojo/edk/embedder/system_impl_private_entrypoints.cc
@@ -162,6 +162,27 @@ MojoResult MojoSystemImplCreateDataPipe(
MakeUserPointer(data_pipe_consumer_handle));
}
+MojoResult MojoSystemImplSetDataPipeProducerOptions(
+ MojoSystemImpl system,
+ MojoHandle data_pipe_producer_handle,
+ const struct MojoDataPipeProducerOptions* options) {
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
+ DCHECK(core);
+ return core->SetDataPipeProducerOptions(data_pipe_producer_handle,
+ MakeUserPointer(options));
+}
+
+MojoResult MojoSystemImplGetDataPipeProducerOptions(
+ MojoSystemImpl system,
+ MojoHandle data_pipe_producer_handle,
+ struct MojoDataPipeProducerOptions* options,
+ uint32_t options_num_bytes) {
+ mojo::system::Core* core = static_cast<mojo::system::Core*>(system);
+ DCHECK(core);
+ return core->GetDataPipeProducerOptions(
+ data_pipe_producer_handle, MakeUserPointer(options), options_num_bytes);
+}
+
MojoResult MojoSystemImplWriteData(MojoSystemImpl system,
MojoHandle data_pipe_producer_handle,
const 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