| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 5 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| 6 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 6 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| 7 | 7 |
| 8 #include "mojo/public/c/system/buffer.h" | 8 #include "mojo/public/c/system/buffer.h" |
| 9 #include "mojo/public/c/system/data_pipe.h" | 9 #include "mojo/public/c/system/data_pipe.h" |
| 10 #include "mojo/public/c/system/handle.h" | 10 #include "mojo/public/c/system/handle.h" |
| 11 #include "mojo/public/c/system/message_pipe.h" | 11 #include "mojo/public/c/system/message_pipe.h" |
| 12 #include "mojo/public/c/system/result.h" | 12 #include "mojo/public/c/system/result.h" |
| 13 #include "mojo/public/c/system/time.h" | 13 #include "mojo/public/c/system/time.h" |
| 14 #include "mojo/public/c/system/wait_set.h" |
| 14 | 15 |
| 15 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1" | 16 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1" |
| 16 | 17 |
| 17 struct nacl_irt_mojo { | 18 struct nacl_irt_mojo { |
| 18 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle); | 19 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle); |
| 19 MojoTimeTicks (*MojoGetTimeTicksNow)(); | 20 MojoTimeTicks (*MojoGetTimeTicksNow)(); |
| 20 MojoResult (*MojoClose)(MojoHandle handle); | 21 MojoResult (*MojoClose)(MojoHandle handle); |
| 21 MojoResult (*MojoGetRights)(MojoHandle handle, MojoHandleRights* rights); | 22 MojoResult (*MojoGetRights)(MojoHandle handle, MojoHandleRights* rights); |
| 22 MojoResult (*MojoReplaceHandleWithReducedRights)( | 23 MojoResult (*MojoReplaceHandleWithReducedRights)( |
| 23 MojoHandle handle, | 24 MojoHandle handle, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 MojoHandle* new_buffer_handle); | 103 MojoHandle* new_buffer_handle); |
| 103 MojoResult (*MojoGetBufferInformation)(MojoHandle buffer_handle, | 104 MojoResult (*MojoGetBufferInformation)(MojoHandle buffer_handle, |
| 104 struct MojoBufferInformation* info, | 105 struct MojoBufferInformation* info, |
| 105 uint32_t info_num_bytes); | 106 uint32_t info_num_bytes); |
| 106 MojoResult (*MojoMapBuffer)(MojoHandle buffer_handle, | 107 MojoResult (*MojoMapBuffer)(MojoHandle buffer_handle, |
| 107 uint64_t offset, | 108 uint64_t offset, |
| 108 uint64_t num_bytes, | 109 uint64_t num_bytes, |
| 109 void** buffer, | 110 void** buffer, |
| 110 MojoMapBufferFlags flags); | 111 MojoMapBufferFlags flags); |
| 111 MojoResult (*MojoUnmapBuffer)(void* buffer); | 112 MojoResult (*MojoUnmapBuffer)(void* buffer); |
| 113 MojoResult (*MojoCreateWaitSet)( |
| 114 const struct MojoCreateWaitSetOptions* options, |
| 115 MojoHandle* handle); |
| 116 MojoResult (*MojoWaitSetAdd)(MojoHandle wait_set_handle, |
| 117 MojoHandle handle, |
| 118 MojoHandleSignals signals, |
| 119 uint64_t cookie, |
| 120 const struct MojoWaitSetAddOptions* options); |
| 121 MojoResult (*MojoWaitSetRemove)(MojoHandle wait_set_handle, uint64_t cookie); |
| 122 MojoResult (*MojoWaitSetWait)(MojoHandle wait_set_handle, |
| 123 MojoDeadline deadline, |
| 124 uint32_t* num_results, |
| 125 struct MojoWaitSetResult* results, |
| 126 uint32_t* max_results); |
| 112 }; | 127 }; |
| 113 | 128 |
| 114 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 129 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| OLD | NEW |