| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 MojoResult MojoCreateDataPipe(const struct MojoCreateDataPipeOptions* options, | 116 MojoResult MojoCreateDataPipe(const struct MojoCreateDataPipeOptions* options, |
| 117 MojoHandle* data_pipe_producer_handle, | 117 MojoHandle* data_pipe_producer_handle, |
| 118 MojoHandle* data_pipe_consumer_handle) { | 118 MojoHandle* data_pipe_consumer_handle) { |
| 119 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 119 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 120 if (!irt_mojo) | 120 if (!irt_mojo) |
| 121 abort(); | 121 abort(); |
| 122 return irt_mojo->MojoCreateDataPipe(options, data_pipe_producer_handle, | 122 return irt_mojo->MojoCreateDataPipe(options, data_pipe_producer_handle, |
| 123 data_pipe_consumer_handle); | 123 data_pipe_consumer_handle); |
| 124 } | 124 } |
| 125 | 125 |
| 126 MojoResult MojoSetDataPipeProducerOptions( |
| 127 MojoHandle data_pipe_producer_handle, |
| 128 const struct MojoDataPipeProducerOptions* options) { |
| 129 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 130 if (!irt_mojo) |
| 131 abort(); |
| 132 return irt_mojo->MojoSetDataPipeProducerOptions(data_pipe_producer_handle, |
| 133 options); |
| 134 } |
| 135 |
| 136 MojoResult MojoGetDataPipeProducerOptions( |
| 137 MojoHandle data_pipe_producer_handle, |
| 138 struct MojoDataPipeProducerOptions* options, |
| 139 uint32_t options_num_bytes) { |
| 140 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 141 if (!irt_mojo) |
| 142 abort(); |
| 143 return irt_mojo->MojoGetDataPipeProducerOptions(data_pipe_producer_handle, |
| 144 options, options_num_bytes); |
| 145 } |
| 146 |
| 126 MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle, | 147 MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle, |
| 127 const void* elements, | 148 const void* elements, |
| 128 uint32_t* num_bytes, | 149 uint32_t* num_bytes, |
| 129 MojoWriteDataFlags flags) { | 150 MojoWriteDataFlags flags) { |
| 130 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 151 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 131 if (!irt_mojo) | 152 if (!irt_mojo) |
| 132 abort(); | 153 abort(); |
| 133 return irt_mojo->MojoWriteData(data_pipe_producer_handle, elements, num_bytes, | 154 return irt_mojo->MojoWriteData(data_pipe_producer_handle, elements, num_bytes, |
| 134 flags); | 155 flags); |
| 135 } | 156 } |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 flags); | 270 flags); |
| 250 } | 271 } |
| 251 | 272 |
| 252 MojoResult MojoUnmapBuffer(void* buffer) { | 273 MojoResult MojoUnmapBuffer(void* buffer) { |
| 253 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 274 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 254 if (!irt_mojo) | 275 if (!irt_mojo) |
| 255 abort(); | 276 abort(); |
| 256 return irt_mojo->MojoUnmapBuffer(buffer); | 277 return irt_mojo->MojoUnmapBuffer(buffer); |
| 257 } | 278 } |
| 258 | 279 |
| OLD | NEW |