| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 return irt_mojo->MojoClose(handle); | 53 return irt_mojo->MojoClose(handle); |
| 54 } | 54 } |
| 55 | 55 |
| 56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) { | 56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) { |
| 57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 58 if (!irt_mojo) | 58 if (!irt_mojo) |
| 59 abort(); | 59 abort(); |
| 60 return irt_mojo->MojoGetRights(handle, rights); | 60 return irt_mojo->MojoGetRights(handle, rights); |
| 61 } | 61 } |
| 62 | 62 |
| 63 MojoResult MojoReplaceHandleWithReducedRights(MojoHandle handle, |
| 64 MojoHandleRights rights_to_remove, |
| 65 MojoHandle* replacement_handle) { |
| 66 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 67 if (!irt_mojo) |
| 68 abort(); |
| 69 return irt_mojo->MojoReplaceHandleWithReducedRights(handle, rights_to_remove, |
| 70 replacement_handle); |
| 71 } |
| 72 |
| 63 MojoResult MojoDuplicateHandleWithReducedRights( | 73 MojoResult MojoDuplicateHandleWithReducedRights( |
| 64 MojoHandle handle, | 74 MojoHandle handle, |
| 65 MojoHandleRights rights_to_remove, | 75 MojoHandleRights rights_to_remove, |
| 66 MojoHandle* new_handle) { | 76 MojoHandle* new_handle) { |
| 67 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 77 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 68 if (!irt_mojo) | 78 if (!irt_mojo) |
| 69 abort(); | 79 abort(); |
| 70 return irt_mojo->MojoDuplicateHandleWithReducedRights( | 80 return irt_mojo->MojoDuplicateHandleWithReducedRights( |
| 71 handle, rights_to_remove, new_handle); | 81 handle, rights_to_remove, new_handle); |
| 72 } | 82 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 flags); | 305 flags); |
| 296 } | 306 } |
| 297 | 307 |
| 298 MojoResult MojoUnmapBuffer(void* buffer) { | 308 MojoResult MojoUnmapBuffer(void* buffer) { |
| 299 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 309 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 300 if (!irt_mojo) | 310 if (!irt_mojo) |
| 301 abort(); | 311 abort(); |
| 302 return irt_mojo->MojoUnmapBuffer(buffer); | 312 return irt_mojo->MojoUnmapBuffer(buffer); |
| 303 } | 313 } |
| 304 | 314 |
| OLD | NEW |