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_ |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // |MojoWatch()|. Only the watch corresponding to this context will be | 199 // |MojoWatch()|. Only the watch corresponding to this context will be |
200 // cancelled. | 200 // cancelled. |
201 // | 201 // |
202 // Returns: | 202 // Returns: |
203 // |MOJO_RESULT_OK| if the watch corresponding to |context| was cancelled. | 203 // |MOJO_RESULT_OK| if the watch corresponding to |context| was cancelled. |
204 // |MOJO_RESULT_INVALID_ARGUMENT| if no watch was registered with |context| | 204 // |MOJO_RESULT_INVALID_ARGUMENT| if no watch was registered with |context| |
205 // for the given |handle|, or if |handle| is invalid. | 205 // for the given |handle|, or if |handle| is invalid. |
206 MOJO_SYSTEM_EXPORT MojoResult | 206 MOJO_SYSTEM_EXPORT MojoResult |
207 MojoCancelWatch(MojoHandle handle, uintptr_t context); | 207 MojoCancelWatch(MojoHandle handle, uintptr_t context); |
208 | 208 |
| 209 // Retrieves system properties. See the documentation for |MojoPropertyType| for |
| 210 // supported property types and their corresponding output value type. |
| 211 // |
| 212 // Returns: |
| 213 // |MOJO_RESULT_OK| on success. |
| 214 // |MOJO_RESULT_INVALID_ARGUMENT| if |type| is not recognized. In this case, |
| 215 // |value| is untouched. |
| 216 MOJO_SYSTEM_EXPORT MojoResult MojoGetProperty(MojoPropertyType type, |
| 217 void* value); |
| 218 |
209 #ifdef __cplusplus | 219 #ifdef __cplusplus |
210 } // extern "C" | 220 } // extern "C" |
211 #endif | 221 #endif |
212 | 222 |
213 #endif // MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ | 223 #endif // MOJO_PUBLIC_C_SYSTEM_FUNCTIONS_H_ |
OLD | NEW |