| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |