Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: mojo/public/platform/native/system_impl_private_thunks.h

Issue 1876353006: Add Mojo{Set,Get}DataPipeProducerOptions() to the NaCl system thunks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: gah Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_THUNKS_H_ 7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_THUNKS_H_
8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_THUNKS_H_ 8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_THUNKS_H_
9 9
10 #include "mojo/public/c/system/buffer.h" 10 #include "mojo/public/c/system/buffer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 MojoHandle message_pipe_handle, 62 MojoHandle message_pipe_handle,
63 void* bytes, 63 void* bytes,
64 uint32_t* num_bytes, 64 uint32_t* num_bytes,
65 MojoHandle* handles, 65 MojoHandle* handles,
66 uint32_t* num_handles, 66 uint32_t* num_handles,
67 MojoReadMessageFlags flags); 67 MojoReadMessageFlags flags);
68 MojoResult (*CreateDataPipe)(MojoSystemImpl system, 68 MojoResult (*CreateDataPipe)(MojoSystemImpl system,
69 const struct MojoCreateDataPipeOptions* options, 69 const struct MojoCreateDataPipeOptions* options,
70 MojoHandle* data_pipe_producer_handle, 70 MojoHandle* data_pipe_producer_handle,
71 MojoHandle* data_pipe_consumer_handle); 71 MojoHandle* data_pipe_consumer_handle);
72 MojoResult (*SetDataPipeProducerOptions)(
73 MojoSystemImpl system,
74 MojoHandle data_pipe_producer_handle,
75 const struct MojoDataPipeProducerOptions* options);
76 MojoResult (*GetDataPipeProducerOptions)(
77 MojoSystemImpl system,
78 MojoHandle data_pipe_producer_handle,
79 struct MojoDataPipeProducerOptions* options,
80 uint32_t options_num_bytes);
72 MojoResult (*WriteData)(MojoSystemImpl system, 81 MojoResult (*WriteData)(MojoSystemImpl system,
73 MojoHandle data_pipe_producer_handle, 82 MojoHandle data_pipe_producer_handle,
74 const void* elements, 83 const void* elements,
75 uint32_t* num_elements, 84 uint32_t* num_elements,
76 MojoWriteDataFlags flags); 85 MojoWriteDataFlags flags);
77 MojoResult (*BeginWriteData)(MojoSystemImpl system, 86 MojoResult (*BeginWriteData)(MojoSystemImpl system,
78 MojoHandle data_pipe_producer_handle, 87 MojoHandle data_pipe_producer_handle,
79 void** buffer, 88 void** buffer,
80 uint32_t* buffer_num_elements, 89 uint32_t* buffer_num_elements,
81 MojoWriteDataFlags flags); 90 MojoWriteDataFlags flags);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 MojoSystemImplThunksPrivate system_thunks = { 152 MojoSystemImplThunksPrivate system_thunks = {
144 sizeof(MojoSystemImplThunksPrivate), 153 sizeof(MojoSystemImplThunksPrivate),
145 MojoSystemImplGetTimeTicksNow, 154 MojoSystemImplGetTimeTicksNow,
146 MojoSystemImplClose, 155 MojoSystemImplClose,
147 MojoSystemImplWait, 156 MojoSystemImplWait,
148 MojoSystemImplWaitMany, 157 MojoSystemImplWaitMany,
149 MojoSystemImplCreateMessagePipe, 158 MojoSystemImplCreateMessagePipe,
150 MojoSystemImplWriteMessage, 159 MojoSystemImplWriteMessage,
151 MojoSystemImplReadMessage, 160 MojoSystemImplReadMessage,
152 MojoSystemImplCreateDataPipe, 161 MojoSystemImplCreateDataPipe,
162 MojoSystemImplSetDataPipeProducerOptions,
163 MojoSystemImplGetDataPipeProducerOptions,
153 MojoSystemImplWriteData, 164 MojoSystemImplWriteData,
154 MojoSystemImplBeginWriteData, 165 MojoSystemImplBeginWriteData,
155 MojoSystemImplEndWriteData, 166 MojoSystemImplEndWriteData,
156 MojoSystemImplSetDataPipeConsumerOptions, 167 MojoSystemImplSetDataPipeConsumerOptions,
157 MojoSystemImplGetDataPipeConsumerOptions, 168 MojoSystemImplGetDataPipeConsumerOptions,
158 MojoSystemImplReadData, 169 MojoSystemImplReadData,
159 MojoSystemImplBeginReadData, 170 MojoSystemImplBeginReadData,
160 MojoSystemImplEndReadData, 171 MojoSystemImplEndReadData,
161 MojoSystemImplCreateSharedBuffer, 172 MojoSystemImplCreateSharedBuffer,
162 MojoSystemImplDuplicateBufferHandle, 173 MojoSystemImplDuplicateBufferHandle,
163 MojoSystemImplGetBufferInformation, 174 MojoSystemImplGetBufferInformation,
164 MojoSystemImplMapBuffer, 175 MojoSystemImplMapBuffer,
165 MojoSystemImplUnmapBuffer}; 176 MojoSystemImplUnmapBuffer};
166 return system_thunks; 177 return system_thunks;
167 } 178 }
168 #endif 179 #endif
169 180
170 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_THUNKS_H_ 181 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_IMPL_PRIVATE_THUNKS_H_
OLDNEW
« no previous file with comments | « mojo/public/platform/native/system_impl_private.h ('k') | mojo/public/platform/native/system_impl_private_thunks.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698