| 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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 9 #ifndef MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| 10 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 10 #define MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| 11 | 11 |
| 12 #include "third_party/mojo/src/mojo/public/c/system/system_export.h" | 12 #include "mojo/public/c/system/system_export.h" |
| 13 #include "third_party/mojo/src/mojo/public/c/system/types.h" | 13 #include "mojo/public/c/system/types.h" |
| 14 | 14 |
| 15 #ifdef __cplusplus | 15 #ifdef __cplusplus |
| 16 extern "C" { | 16 extern "C" { |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 // Note: Pointer parameters that are labelled "optional" may be null (at least | 19 // Note: Pointer parameters that are labelled "optional" may be null (at least |
| 20 // under some circumstances). Non-const pointer parameters are also labeled | 20 // 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 | 21 // "in", "out", or "in/out", to indicate how they are used. (Note that how/if |
| 22 // such a parameter is used may depend on other parameters or the requested | 22 // such a parameter is used may depend on other parameters or the requested |
| 23 // operation's success/failure. E.g., a separate |flags| parameter may control | 23 // operation's success/failure. E.g., a separate |flags| parameter may control |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const MojoHandleSignals* signals, | 124 const MojoHandleSignals* signals, |
| 125 uint32_t num_handles, | 125 uint32_t num_handles, |
| 126 MojoDeadline deadline, | 126 MojoDeadline deadline, |
| 127 uint32_t* result_index, // Optional out | 127 uint32_t* result_index, // Optional out |
| 128 struct MojoHandleSignalsState* signals_states); // Optional out | 128 struct MojoHandleSignalsState* signals_states); // Optional out |
| 129 | 129 |
| 130 #ifdef __cplusplus | 130 #ifdef __cplusplus |
| 131 } // extern "C" | 131 } // extern "C" |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 134 #endif // MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
| OLD | NEW |