Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: mojo/public/c/system/functions.h

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/c/system/thunks.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/c/system/thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698