Chromium Code Reviews| Index: mojo/public/system/core.h |
| diff --git a/mojo/public/system/core.h b/mojo/public/system/core.h |
| index cb405ae1e089d54f8eb37817645e714412b2522f..2f294f3130656a8aa2a6cb195482bc41d4e291c1 100644 |
| --- a/mojo/public/system/core.h |
| +++ b/mojo/public/system/core.h |
| @@ -9,6 +9,8 @@ |
| #include <stdint.h> |
| +#include "mojo/public/system/system_export.h" |
|
darin (slow to review)
2013/10/04 21:47:14
looks like this file is missing from the CL. i agr
|
| + |
| // Types ----------------------------------------------------------------------- |
| // TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior |
| @@ -190,7 +192,7 @@ extern "C" { |
| // happen before the close, be cancelled with result |MOJO_RESULT_CANCELLED| if |
| // they properly overlap (this is likely the case with |MojoWait()|, etc.), or |
| // fail with |MOJO_RESULT_INVALID_ARGUMENT| if they happen after. |
| -MojoResult MojoClose(MojoHandle handle); |
| +SYSTEM_EXPORT MojoResult MojoClose(MojoHandle handle); |
| // Waits on the given handle until the state indicated by |flags| is satisfied |
| // or until |deadline| has passed. |
| @@ -208,9 +210,9 @@ MojoResult MojoClose(MojoHandle handle); |
| // If there are multiple waiters (on different threads, obviously) waiting on |
| // the same handle and flag and that flag becomes set, all waiters will be |
| // awoken. |
| -MojoResult MojoWait(MojoHandle handle, |
| - MojoWaitFlags flags, |
| - MojoDeadline deadline); |
| +SYSTEM_EXPORT MojoResult MojoWait(MojoHandle handle, |
| + MojoWaitFlags flags, |
| + MojoDeadline deadline); |
| // Waits on |handles[0]|, ..., |handles[num_handles-1]| for at least one of them |
| // to satisfy the state indicated by |flags[0]|, ..., |flags[num_handles-1]|, |
| @@ -225,23 +227,26 @@ MojoResult MojoWait(MojoHandle handle, |
| // handles satisfying any of its flags. |
| // |MOJO_RESULT_FAILED_PRECONDITION| if it is or becomes impossible that SOME |
| // |handle[i]| will ever satisfy any of its flags |flags[i]|. |
| -MojoResult MojoWaitMany(const MojoHandle* handles, |
| - const MojoWaitFlags* flags, |
| - uint32_t num_handles, |
| - MojoDeadline deadline); |
| +SYSTEM_EXPORT MojoResult MojoWaitMany(const MojoHandle* handles, |
| + const MojoWaitFlags* flags, |
| + uint32_t num_handles, |
| + MojoDeadline deadline); |
| // TODO(vtl): flags? other params (e.g., queue sizes, max message sizes?) |
| -MojoResult MojoCreateMessagePipe(MojoHandle* handle_0, MojoHandle* handle_1); |
| - |
| -MojoResult MojoWriteMessage(MojoHandle handle, |
| - const void* bytes, uint32_t num_bytes, |
| - const MojoHandle* handles, uint32_t num_handles, |
| - MojoWriteMessageFlags flags); |
| - |
| -MojoResult MojoReadMessage(MojoHandle handle, |
| - void* bytes, uint32_t* num_bytes, |
| - MojoHandle* handles, uint32_t* num_handles, |
| - MojoReadMessageFlags flags); |
| +SYSTEM_EXPORT MojoResult MojoCreateMessagePipe(MojoHandle* handle_0, |
| + MojoHandle* handle_1); |
| + |
| +SYSTEM_EXPORT MojoResult MojoWriteMessage(MojoHandle handle, |
| + const void* bytes, uint32_t num_bytes, |
| + const MojoHandle* handles, |
| + uint32_t num_handles, |
| + MojoWriteMessageFlags flags); |
| + |
| +SYSTEM_EXPORT MojoResult MojoReadMessage(MojoHandle handle, |
| + void* bytes, uint32_t* num_bytes, |
| + MojoHandle* handles, |
| + uint32_t* num_handles, |
| + MojoReadMessageFlags flags); |
| #ifdef __cplusplus |
| } // extern "C" |