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

Unified Diff: mojo/public/c/system/types.h

Issue 336313007: Mojo: Rename MOJO_WAIT_FLAG_... -> MOJO_HANDLE_SIGNAL_.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/c/system/tests/core_unittest_pure_c.c ('k') | mojo/public/cpp/bindings/lib/connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/types.h
diff --git a/mojo/public/c/system/types.h b/mojo/public/c/system/types.h
index 0e97db982162649cc466ea5f95c74a24b95799c5..26c687785e7fb70bd51db7cc2eb166565977ed3b 100644
--- a/mojo/public/c/system/types.h
+++ b/mojo/public/c/system/types.h
@@ -145,25 +145,21 @@ const MojoDeadline MOJO_DEADLINE_INDEFINITE = static_cast<MojoDeadline>(-1);
// |MojoHandleSignals|: Used to specify signals that can be waited on for a
// handle (and which can be triggered), e.g., the ability to read or write to
// the handle.
-// |MOJO_WAIT_FLAG_NONE| - No flags. |MojoWait()|, etc. will return
+// |MOJO_HANDLE_SIGNAL_NONE| - No flags. |MojoWait()|, etc. will return
// |MOJO_RESULT_FAILED_PRECONDITION| if you attempt to wait on this.
-// |MOJO_WAIT_FLAG_READABLE| - Can read (e.g., a message) from the handle.
-// |MOJO_WAIT_FLAG_WRITABLE| - Can write (e.g., a message) to the handle.
-// |MOJO_WAIT_FLAG_EVERYTHING| - All flags.
+// |MOJO_HANDLE_SIGNAL_READABLE| - Can read (e.g., a message) from the handle.
+// |MOJO_HANDLE_SIGNAL_WRITABLE| - Can write (e.g., a message) to the handle.
typedef uint32_t MojoHandleSignals;
-// TODO(vtl): Rename these to MOJO_HANDLE_SIGNAL_....
#ifdef __cplusplus
-const MojoHandleSignals MOJO_WAIT_FLAG_NONE = 0;
-const MojoHandleSignals MOJO_WAIT_FLAG_READABLE = 1 << 0;
-const MojoHandleSignals MOJO_WAIT_FLAG_WRITABLE = 1 << 1;
-const MojoHandleSignals MOJO_WAIT_FLAG_EVERYTHING = ~0;
+const MojoHandleSignals MOJO_HANDLE_SIGNAL_NONE = 0;
+const MojoHandleSignals MOJO_HANDLE_SIGNAL_READABLE = 1 << 0;
+const MojoHandleSignals MOJO_HANDLE_SIGNAL_WRITABLE = 1 << 1;
#else
-#define MOJO_WAIT_FLAG_NONE ((MojoHandleSignals) 0)
-#define MOJO_WAIT_FLAG_READABLE ((MojoHandleSignals) 1 << 0)
-#define MOJO_WAIT_FLAG_WRITABLE ((MojoHandleSignals) 1 << 1)
-#define MOJO_WAIT_FLAG_EVERYTHING (~((MojoHandleSignals) 0))
+#define MOJO_HANDLE_SIGNAL_NONE ((MojoHandleSignals) 0)
+#define MOJO_HANDLE_SIGNAL_READABLE ((MojoHandleSignals) 1 << 0)
+#define MOJO_HANDLE_SIGNAL_WRITABLE ((MojoHandleSignals) 1 << 1)
#endif
// TODO(vtl): Add out parameters with this to MojoWait/MojoWaitMany.
« no previous file with comments | « mojo/public/c/system/tests/core_unittest_pure_c.c ('k') | mojo/public/cpp/bindings/lib/connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698