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/types.h" | 10 #include "mojo/public/c/system/types.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 MojoResult MojoSystemImplCreateSharedBuffer( | 112 MojoResult MojoSystemImplCreateSharedBuffer( |
113 MojoSystemImpl system, | 113 MojoSystemImpl system, |
114 const struct MojoCreateSharedBufferOptions* options, | 114 const struct MojoCreateSharedBufferOptions* options, |
115 uint64_t num_bytes, | 115 uint64_t num_bytes, |
116 MojoHandle* shared_buffer_handle); | 116 MojoHandle* shared_buffer_handle); |
117 MojoResult MojoSystemImplDuplicateBufferHandle( | 117 MojoResult MojoSystemImplDuplicateBufferHandle( |
118 MojoSystemImpl system, | 118 MojoSystemImpl system, |
119 MojoHandle buffer_handle, | 119 MojoHandle buffer_handle, |
120 const struct MojoDuplicateBufferHandleOptions* options, | 120 const struct MojoDuplicateBufferHandleOptions* options, |
121 MojoHandle* new_buffer_handle); | 121 MojoHandle* new_buffer_handle); |
| 122 MojoResult MojoSystemImplGetBufferInformation( |
| 123 MojoSystemImpl system, |
| 124 MojoHandle buffer_handle, |
| 125 struct MojoBufferInformation* info, |
| 126 uint32_t info_num_bytes); |
122 MojoResult MojoSystemImplMapBuffer(MojoSystemImpl system, | 127 MojoResult MojoSystemImplMapBuffer(MojoSystemImpl system, |
123 MojoHandle buffer_handle, | 128 MojoHandle buffer_handle, |
124 uint64_t offset, | 129 uint64_t offset, |
125 uint64_t num_bytes, | 130 uint64_t num_bytes, |
126 void** buffer, | 131 void** buffer, |
127 MojoMapBufferFlags flags); | 132 MojoMapBufferFlags flags); |
128 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); | 133 MojoResult MojoSystemImplUnmapBuffer(MojoSystemImpl system, void* buffer); |
129 | 134 |
130 #ifdef __cplusplus | 135 #ifdef __cplusplus |
131 } // extern "C" | 136 } // extern "C" |
132 #endif // __cplusplus | 137 #endif // __cplusplus |
133 | 138 |
134 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ | 139 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_H_ |
OLD | NEW |