OLD | NEW |
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 // This file contains types/constants and functions specific to message pipes. | 5 // This file contains types/constants and functions specific to message pipes. |
6 // | 6 // |
7 // Note: This header should be compilable as C. | 7 // Note: This header should be compilable as C. |
8 | 8 |
9 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 9 #ifndef MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
10 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 10 #define MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
11 | 11 |
12 #include "third_party/mojo/src/mojo/public/c/system/macros.h" | 12 #include "mojo/public/c/system/macros.h" |
13 #include "third_party/mojo/src/mojo/public/c/system/system_export.h" | 13 #include "mojo/public/c/system/system_export.h" |
14 #include "third_party/mojo/src/mojo/public/c/system/types.h" | 14 #include "mojo/public/c/system/types.h" |
15 | 15 |
16 // |MojoCreateMessagePipeOptions|: Used to specify creation parameters for a | 16 // |MojoCreateMessagePipeOptions|: Used to specify creation parameters for a |
17 // message pipe to |MojoCreateMessagePipe()|. | 17 // message pipe to |MojoCreateMessagePipe()|. |
18 // |uint32_t struct_size|: Set to the size of the | 18 // |uint32_t struct_size|: Set to the size of the |
19 // |MojoCreateMessagePipeOptions| struct. (Used to allow for future | 19 // |MojoCreateMessagePipeOptions| struct. (Used to allow for future |
20 // extensions.) | 20 // extensions.) |
21 // |MojoCreateMessagePipeOptionsFlags flags|: Reserved for future use. | 21 // |MojoCreateMessagePipeOptionsFlags flags|: Reserved for future use. |
22 // |MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_NONE|: No flags; default mode. | 22 // |MOJO_CREATE_MESSAGE_PIPE_OPTIONS_FLAG_NONE|: No flags; default mode. |
23 | 23 |
24 typedef uint32_t MojoCreateMessagePipeOptionsFlags; | 24 typedef uint32_t MojoCreateMessagePipeOptionsFlags; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void* bytes, // Optional out. | 167 void* bytes, // Optional out. |
168 uint32_t* num_bytes, // Optional in/out. | 168 uint32_t* num_bytes, // Optional in/out. |
169 MojoHandle* handles, // Optional out. | 169 MojoHandle* handles, // Optional out. |
170 uint32_t* num_handles, // Optional in/out. | 170 uint32_t* num_handles, // Optional in/out. |
171 MojoReadMessageFlags flags); | 171 MojoReadMessageFlags flags); |
172 | 172 |
173 #ifdef __cplusplus | 173 #ifdef __cplusplus |
174 } // extern "C" | 174 } // extern "C" |
175 #endif | 175 #endif |
176 | 176 |
177 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 177 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
OLD | NEW |