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 // Note: This header should be compilable as C. | 5 // Note: This header should be compilable as C. |
6 | 6 |
7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
9 | 9 |
10 #include "mojo/public/c/system/buffer.h" | 10 #include "mojo/public/c/system/buffer.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // To avoid trouble, this API should only be used to bootstrap a newly created | 44 // To avoid trouble, this API should only be used to bootstrap a newly created |
45 // |to_system| with a newly created |handle|. | 45 // |to_system| with a newly created |handle|. |
46 MojoResult MojoSystemImplTransferHandle(MojoSystemImpl from_system, | 46 MojoResult MojoSystemImplTransferHandle(MojoSystemImpl from_system, |
47 MojoHandle handle, | 47 MojoHandle handle, |
48 MojoSystemImpl to_system, | 48 MojoSystemImpl to_system, |
49 MojoHandle* result_handle); | 49 MojoHandle* result_handle); |
50 | 50 |
51 // APIs mirroring the Mojo system APIs, but also taking a MojoSystemImpl param. | 51 // APIs mirroring the Mojo system APIs, but also taking a MojoSystemImpl param. |
52 MojoTimeTicks MojoSystemImplGetTimeTicksNow(MojoSystemImpl system); | 52 MojoTimeTicks MojoSystemImplGetTimeTicksNow(MojoSystemImpl system); |
53 MojoResult MojoSystemImplClose(MojoSystemImpl system, MojoHandle handle); | 53 MojoResult MojoSystemImplClose(MojoSystemImpl system, MojoHandle handle); |
| 54 MojoResult MojoSystemImplGetRights(MojoSystemImpl system, |
| 55 MojoHandle handle, |
| 56 MojoHandleRights* rights); |
54 MojoResult MojoSystemImplWait(MojoSystemImpl system, | 57 MojoResult MojoSystemImplWait(MojoSystemImpl system, |
55 MojoHandle handle, | 58 MojoHandle handle, |
56 MojoHandleSignals signals, | 59 MojoHandleSignals signals, |
57 MojoDeadline deadline, | 60 MojoDeadline deadline, |
58 struct MojoHandleSignalsState* signals_state); | 61 struct MojoHandleSignalsState* signals_state); |
59 MojoResult MojoSystemImplWaitMany( | 62 MojoResult MojoSystemImplWaitMany( |
60 MojoSystemImpl system, | 63 MojoSystemImpl system, |
61 const MojoHandle* handles, | 64 const MojoHandle* handles, |
62 const MojoHandleSignals* signals, | 65 const MojoHandleSignals* signals, |
63 uint32_t num_handles, | 66 uint32_t num_handles, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 uint64_t num_bytes, | 156 uint64_t num_bytes, |
154 void** buffer, | 157 void** buffer, |
155 MojoMapBufferFlags flags); | 158 MojoMapBufferFlags flags); |
156 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); | 159 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); |
157 | 160 |
158 #ifdef __cplusplus | 161 #ifdef __cplusplus |
159 } // extern "C" | 162 } // extern "C" |
160 #endif // __cplusplus | 163 #endif // __cplusplus |
161 | 164 |
162 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 165 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
OLD | NEW |