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

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

Issue 324783002: Mojo: Add a MojoCreateMessagePipeOptions struct parameter to MojoCreateMessagePipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/cpp/system/core.h ('k') | mojo/public/platform/native/system_thunks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
6 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 6 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "mojo/public/c/system/core.h" 10 #include "mojo/public/c/system/core.h"
(...skipping 25 matching lines...) Expand all
36 size_t size; // Should be set to sizeof(MojoSystemThunks). 36 size_t size; // Should be set to sizeof(MojoSystemThunks).
37 MojoTimeTicks (*GetTimeTicksNow)(); 37 MojoTimeTicks (*GetTimeTicksNow)();
38 MojoResult (*Close)(MojoHandle handle); 38 MojoResult (*Close)(MojoHandle handle);
39 MojoResult (*Wait)(MojoHandle handle, 39 MojoResult (*Wait)(MojoHandle handle,
40 MojoWaitFlags flags, 40 MojoWaitFlags flags,
41 MojoDeadline deadline); 41 MojoDeadline deadline);
42 MojoResult (*WaitMany)(const MojoHandle* handles, 42 MojoResult (*WaitMany)(const MojoHandle* handles,
43 const MojoWaitFlags* flags, 43 const MojoWaitFlags* flags,
44 uint32_t num_handles, 44 uint32_t num_handles,
45 MojoDeadline deadline); 45 MojoDeadline deadline);
46 MojoResult (*CreateMessagePipe)(MojoHandle* message_pipe_handle0, 46 MojoResult (*CreateMessagePipe)(const MojoCreateMessagePipeOptions* options,
47 MojoHandle* message_pipe_handle0,
47 MojoHandle* message_pipe_handle1); 48 MojoHandle* message_pipe_handle1);
48 MojoResult (*WriteMessage)(MojoHandle message_pipe_handle, 49 MojoResult (*WriteMessage)(MojoHandle message_pipe_handle,
49 const void* bytes, 50 const void* bytes,
50 uint32_t num_bytes, 51 uint32_t num_bytes,
51 const MojoHandle* handles, 52 const MojoHandle* handles,
52 uint32_t num_handles, 53 uint32_t num_handles,
53 MojoWriteMessageFlags flags); 54 MojoWriteMessageFlags flags);
54 MojoResult (*ReadMessage)(MojoHandle message_pipe_handle, 55 MojoResult (*ReadMessage)(MojoHandle message_pipe_handle,
55 void* bytes, 56 void* bytes,
56 uint32_t* num_bytes, 57 uint32_t* num_bytes,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Use this type for the function found by dynamically discovering it in 128 // Use this type for the function found by dynamically discovering it in
128 // a DSO linked with mojo_system. For example: 129 // a DSO linked with mojo_system. For example:
129 // MojoSetSystemThunksFn mojo_set_system_thunks_fn = 130 // MojoSetSystemThunksFn mojo_set_system_thunks_fn =
130 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer( 131 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer(
131 // "MojoSetSystemThunks")); 132 // "MojoSetSystemThunks"));
132 // The expected size of |system_thunks} is returned. 133 // The expected size of |system_thunks} is returned.
133 // The contents of |system_thunks| are copied. 134 // The contents of |system_thunks| are copied.
134 typedef size_t (*MojoSetSystemThunksFn)(const MojoSystemThunks* system_thunks); 135 typedef size_t (*MojoSetSystemThunksFn)(const MojoSystemThunks* system_thunks);
135 136
136 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 137 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/core.h ('k') | mojo/public/platform/native/system_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698