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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 return irt_mojo->MojoGetTimeTicksNow(); | 46 return irt_mojo->MojoGetTimeTicksNow(); |
47 } | 47 } |
48 | 48 |
49 MojoResult MojoClose(MojoHandle handle) { | 49 MojoResult MojoClose(MojoHandle handle) { |
50 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 50 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
51 if (!irt_mojo) | 51 if (!irt_mojo) |
52 abort(); | 52 abort(); |
53 return irt_mojo->MojoClose(handle); | 53 return irt_mojo->MojoClose(handle); |
54 } | 54 } |
55 | 55 |
| 56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) { |
| 57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
| 58 if (!irt_mojo) |
| 59 abort(); |
| 60 return irt_mojo->MojoGetRights(handle, rights); |
| 61 } |
| 62 |
56 MojoResult MojoWait(MojoHandle handle, | 63 MojoResult MojoWait(MojoHandle handle, |
57 MojoHandleSignals signals, | 64 MojoHandleSignals signals, |
58 MojoDeadline deadline, | 65 MojoDeadline deadline, |
59 struct MojoHandleSignalsState* signals_state) { | 66 struct MojoHandleSignalsState* signals_state) { |
60 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 67 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
61 if (!irt_mojo) | 68 if (!irt_mojo) |
62 abort(); | 69 abort(); |
63 return irt_mojo->MojoWait(handle, signals, deadline, signals_state); | 70 return irt_mojo->MojoWait(handle, signals, deadline, signals_state); |
64 } | 71 } |
65 | 72 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 flags); | 277 flags); |
271 } | 278 } |
272 | 279 |
273 MojoResult MojoUnmapBuffer(void* buffer) { | 280 MojoResult MojoUnmapBuffer(void* buffer) { |
274 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); | 281 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); |
275 if (!irt_mojo) | 282 if (!irt_mojo) |
276 abort(); | 283 abort(); |
277 return irt_mojo->MojoUnmapBuffer(buffer); | 284 return irt_mojo->MojoUnmapBuffer(buffer); |
278 } | 285 } |
279 | 286 |
OLD | NEW |