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

Unified Diff: mojo/public/platform/nacl/libmojo.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 | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/platform/nacl/mojo_irt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/nacl/libmojo.cc
diff --git a/mojo/public/platform/nacl/libmojo.cc b/mojo/public/platform/nacl/libmojo.cc
index bcd9cf31cbf987c8b31c7c73ec434f53e5ff83d5..415d95003d083b4919cee2a1da7c6b2618aaa952 100644
--- a/mojo/public/platform/nacl/libmojo.cc
+++ b/mojo/public/platform/nacl/libmojo.cc
@@ -123,6 +123,27 @@ MojoResult MojoCreateDataPipe(const struct MojoCreateDataPipeOptions* options,
data_pipe_consumer_handle);
}
+MojoResult MojoSetDataPipeProducerOptions(
+ MojoHandle data_pipe_producer_handle,
+ const struct MojoDataPipeProducerOptions* options) {
+ struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
+ if (!irt_mojo)
+ abort();
+ return irt_mojo->MojoSetDataPipeProducerOptions(data_pipe_producer_handle,
+ options);
+}
+
+MojoResult MojoGetDataPipeProducerOptions(
+ MojoHandle data_pipe_producer_handle,
+ struct MojoDataPipeProducerOptions* options,
+ uint32_t options_num_bytes) {
+ struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
+ if (!irt_mojo)
+ abort();
+ return irt_mojo->MojoGetDataPipeProducerOptions(data_pipe_producer_handle,
+ options, options_num_bytes);
+}
+
MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle,
const void* elements,
uint32_t* num_bytes,
« no previous file with comments | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/platform/nacl/mojo_irt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698