| 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_ |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| was not a valid message. | 301 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| was not a valid message. |
| 302 MOJO_SYSTEM_EXPORT MojoResult MojoFreeMessage(MojoMessageHandle message); | 302 MOJO_SYSTEM_EXPORT MojoResult MojoFreeMessage(MojoMessageHandle message); |
| 303 | 303 |
| 304 // Retrieves the address of mutable message bytes for a message allocated by | 304 // Retrieves the address of mutable message bytes for a message allocated by |
| 305 // either |MojoAllocMessage()| or |MojoReadMessageNew()|. | 305 // either |MojoAllocMessage()| or |MojoReadMessageNew()|. |
| 306 // | 306 // |
| 307 // Returns: | 307 // Returns: |
| 308 // |MOJO_RESULT_OK| if |message| is a valid message object. |*buffer| will | 308 // |MOJO_RESULT_OK| if |message| is a valid message object. |*buffer| will |
| 309 // be updated to point to mutable message bytes. | 309 // be updated to point to mutable message bytes. |
| 310 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| is not a valid message object. | 310 // |MOJO_RESULT_INVALID_ARGUMENT| if |message| is not a valid message object. |
| 311 // |
| 312 // NOTE: A returned buffer address is always guaranteed to be 8-byte aligned. |
| 311 MOJO_SYSTEM_EXPORT MojoResult MojoGetMessageBuffer(MojoMessageHandle message, | 313 MOJO_SYSTEM_EXPORT MojoResult MojoGetMessageBuffer(MojoMessageHandle message, |
| 312 void** buffer); // Out | 314 void** buffer); // Out |
| 313 | 315 |
| 314 #ifdef __cplusplus | 316 #ifdef __cplusplus |
| 315 } // extern "C" | 317 } // extern "C" |
| 316 #endif | 318 #endif |
| 317 | 319 |
| 318 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ | 320 #endif // MOJO_PUBLIC_C_SYSTEM_MESSAGE_PIPE_H_ |
| OLD | NEW |