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 MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 9 #ifndef MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
10 #define MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 10 #define MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
11 | 11 |
| 12 #include <stdint.h> |
| 13 |
12 #include "mojo/public/c/system/macros.h" | 14 #include "mojo/public/c/system/macros.h" |
13 #include "mojo/public/c/system/system_export.h" | 15 #include "mojo/public/c/system/system_export.h" |
14 #include "mojo/public/c/system/types.h" | 16 #include "mojo/public/c/system/types.h" |
15 | 17 |
16 // |MojoCreateMessagePipeOptions|: Used to specify creation parameters for a | 18 // |MojoCreateMessagePipeOptions|: Used to specify creation parameters for a |
17 // message pipe to |MojoCreateMessagePipe()|. | 19 // message pipe to |MojoCreateMessagePipe()|. |
18 // |uint32_t struct_size|: Set to the size of the | 20 // |uint32_t struct_size|: Set to the size of the |
19 // |MojoCreateMessagePipeOptions| struct. (Used to allow for future | 21 // |MojoCreateMessagePipeOptions| struct. (Used to allow for future |
20 // extensions.) | 22 // extensions.) |
21 // |MojoCreateMessagePipeOptionsFlags flags|: Used to specify different modes | 23 // |MojoCreateMessagePipeOptionsFlags flags|: Used to specify different modes |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 uint32_t* num_bytes, // Optional in/out. | 179 uint32_t* num_bytes, // Optional in/out. |
178 MojoHandle* handles, // Optional out. | 180 MojoHandle* handles, // Optional out. |
179 uint32_t* num_handles, // Optional in/out. | 181 uint32_t* num_handles, // Optional in/out. |
180 MojoReadMessageFlags flags); | 182 MojoReadMessageFlags flags); |
181 | 183 |
182 #ifdef __cplusplus | 184 #ifdef __cplusplus |
183 } // extern "C" | 185 } // extern "C" |
184 #endif | 186 #endif |
185 | 187 |
186 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 188 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
OLD | NEW |