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

Side by Side Diff: mojo/public/platform/nacl/libmojo.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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // WARNING this file was generated by generate_nacl_bindings.py 5 // WARNING this file was generated by generate_nacl_bindings.py
6 // Do not edit by hand. 6 // Do not edit by hand.
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "mojo/public/c/system/buffer.h" 10 #include "mojo/public/c/system/buffer.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 MojoResult MojoEndWriteData(MojoHandle data_pipe_producer_handle, 148 MojoResult MojoEndWriteData(MojoHandle data_pipe_producer_handle,
149 uint32_t num_bytes_written) { 149 uint32_t num_bytes_written) {
150 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 150 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
151 if (!irt_mojo) 151 if (!irt_mojo)
152 abort(); 152 abort();
153 return irt_mojo->MojoEndWriteData(data_pipe_producer_handle, 153 return irt_mojo->MojoEndWriteData(data_pipe_producer_handle,
154 num_bytes_written); 154 num_bytes_written);
155 } 155 }
156 156
157 MojoResult MojoSetDataPipeConsumerOptions(
158 MojoHandle data_pipe_consumer_handle,
159 const struct MojoDataPipeConsumerOptions* options) {
160 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
161 if (!irt_mojo)
162 abort();
163 return irt_mojo->MojoSetDataPipeConsumerOptions(data_pipe_consumer_handle,
164 options);
165 }
166
167 MojoResult MojoGetDataPipeConsumerOptions(
168 MojoHandle data_pipe_consumer_handle,
169 struct MojoDataPipeConsumerOptions* options,
170 uint32_t options_num_bytes) {
171 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
172 if (!irt_mojo)
173 abort();
174 return irt_mojo->MojoGetDataPipeConsumerOptions(data_pipe_consumer_handle,
175 options, options_num_bytes);
176 }
177
157 MojoResult MojoReadData(MojoHandle data_pipe_consumer_handle, 178 MojoResult MojoReadData(MojoHandle data_pipe_consumer_handle,
158 void* elements, 179 void* elements,
159 uint32_t* num_bytes, 180 uint32_t* num_bytes,
160 MojoReadDataFlags flags) { 181 MojoReadDataFlags flags) {
161 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 182 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
162 if (!irt_mojo) 183 if (!irt_mojo)
163 abort(); 184 abort();
164 return irt_mojo->MojoReadData(data_pipe_consumer_handle, elements, num_bytes, 185 return irt_mojo->MojoReadData(data_pipe_consumer_handle, elements, num_bytes,
165 flags); 186 flags);
166 } 187 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 flags); 249 flags);
229 } 250 }
230 251
231 MojoResult MojoUnmapBuffer(void* buffer) { 252 MojoResult MojoUnmapBuffer(void* buffer) {
232 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 253 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
233 if (!irt_mojo) 254 if (!irt_mojo)
234 abort(); 255 abort();
235 return irt_mojo->MojoUnmapBuffer(buffer); 256 return irt_mojo->MojoUnmapBuffer(buffer);
236 } 257 }
237 258
OLDNEW
« 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