| 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 basic functions common to different Mojo system APIs. | 5 // This file contains basic functions common to different Mojo system APIs. |
| 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_FUNCTIONS_H_ | 9 #ifndef MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| 10 #define MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 10 #define MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| 11 | 11 |
| 12 #include <stdint.h> |
| 13 |
| 12 #include "mojo/public/c/system/system_export.h" | 14 #include "mojo/public/c/system/system_export.h" |
| 13 #include "mojo/public/c/system/types.h" | 15 #include "mojo/public/c/system/types.h" |
| 14 | 16 |
| 15 #ifdef __cplusplus | 17 #ifdef __cplusplus |
| 16 extern "C" { | 18 extern "C" { |
| 17 #endif | 19 #endif |
| 18 | 20 |
| 19 // Note: Pointer parameters that are labelled "optional" may be null (at least | 21 // Note: Pointer parameters that are labelled "optional" may be null (at least |
| 20 // under some circumstances). Non-const pointer parameters are also labeled | 22 // under some circumstances). Non-const pointer parameters are also labeled |
| 21 // "in", "out", or "in/out", to indicate how they are used. (Note that how/if | 23 // "in", "out", or "in/out", to indicate how they are used. (Note that how/if |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 uint32_t num_handles, | 127 uint32_t num_handles, |
| 126 MojoDeadline deadline, | 128 MojoDeadline deadline, |
| 127 uint32_t* result_index, // Optional out | 129 uint32_t* result_index, // Optional out |
| 128 struct MojoHandleSignalsState* signals_states); // Optional out | 130 struct MojoHandleSignalsState* signals_states); // Optional out |
| 129 | 131 |
| 130 #ifdef __cplusplus | 132 #ifdef __cplusplus |
| 131 } // extern "C" | 133 } // extern "C" |
| 132 #endif | 134 #endif |
| 133 | 135 |
| 134 #endif // MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 136 #endif // MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| OLD | NEW |