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

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

Issue 1890603003: Add Mojo{Set,Get}DataPipeProducerOptions() to the standard/native 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/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/entrypoints.cc
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
index 875f1cfecc61ca2a0f02f2c85554e4558509af09..44c1e2293cb15a2408d07e242f2e3d964daab8a2 100644
--- a/mojo/edk/embedder/entrypoints.cc
+++ b/mojo/edk/embedder/entrypoints.cc
@@ -84,6 +84,21 @@ MojoResult MojoCreateDataPipe(const MojoCreateDataPipeOptions* options,
MakeUserPointer(data_pipe_consumer_handle));
}
+MojoResult MojoSetDataPipeProducerOptions(
+ MojoHandle data_pipe_producer_handle,
+ const struct MojoDataPipeProducerOptions* options) {
+ return g_core->SetDataPipeProducerOptions(data_pipe_producer_handle,
+ MakeUserPointer(options));
+}
+
+MojoResult MojoGetDataPipeProducerOptions(
+ MojoHandle data_pipe_producer_handle,
+ struct MojoDataPipeProducerOptions* options,
+ uint32_t options_num_bytes) {
+ return g_core->GetDataPipeProducerOptions(
+ data_pipe_producer_handle, MakeUserPointer(options), options_num_bytes);
+}
+
MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle,
const void* elements,
uint32_t* num_elements,
« no previous file with comments | « no previous file | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698