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

Unified Diff: mojo/public/platform/native/system_thunks.h

Issue 556813003: Add Go build support for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: qsr feedback Created 6 years, 3 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
« build/go/go.py ('K') | « mojo/public/go/mojo/system/core.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.h
diff --git a/mojo/public/platform/native/system_thunks.h b/mojo/public/platform/native/system_thunks.h
index de82eba1bfc1e7adedb30737f1c575e0de8c13c0..cdc51ed9856f4cbe2603f2cbd855c6b8e00453ec 100644
--- a/mojo/public/platform/native/system_thunks.h
+++ b/mojo/public/platform/native/system_thunks.h
@@ -43,9 +43,10 @@ struct MojoSystemThunks {
const MojoHandleSignals* signals,
uint32_t num_handles,
MojoDeadline deadline);
- MojoResult (*CreateMessagePipe)(const MojoCreateMessagePipeOptions* options,
- MojoHandle* message_pipe_handle0,
- MojoHandle* message_pipe_handle1);
+ MojoResult (*CreateMessagePipe)(
+ const struct MojoCreateMessagePipeOptions* options,
qsr 2014/09/22 14:35:07 Please add Trung as a reviewer for those changes.
tburkard 2014/09/22 14:45:07 Done.
+ MojoHandle* message_pipe_handle0,
+ MojoHandle* message_pipe_handle1);
MojoResult (*WriteMessage)(MojoHandle message_pipe_handle,
const void* bytes,
uint32_t num_bytes,
@@ -58,7 +59,7 @@ struct MojoSystemThunks {
MojoHandle* handles,
uint32_t* num_handles,
MojoReadMessageFlags flags);
- MojoResult (*CreateDataPipe)(const MojoCreateDataPipeOptions* options,
+ MojoResult (*CreateDataPipe)(const struct MojoCreateDataPipeOptions* options,
MojoHandle* data_pipe_producer_handle,
MojoHandle* data_pipe_consumer_handle);
MojoResult (*WriteData)(MojoHandle data_pipe_producer_handle,
@@ -82,12 +83,12 @@ struct MojoSystemThunks {
MojoResult (*EndReadData)(MojoHandle data_pipe_consumer_handle,
uint32_t num_elements_read);
MojoResult (*CreateSharedBuffer)(
- const MojoCreateSharedBufferOptions* options,
+ const struct MojoCreateSharedBufferOptions* options,
uint64_t num_bytes,
MojoHandle* shared_buffer_handle);
MojoResult (*DuplicateBufferHandle)(
MojoHandle buffer_handle,
- const MojoDuplicateBufferHandleOptions* options,
+ const struct MojoDuplicateBufferHandleOptions* options,
MojoHandle* new_buffer_handle);
MojoResult (*MapBuffer)(MojoHandle buffer_handle,
uint64_t offset,
@@ -100,9 +101,9 @@ struct MojoSystemThunks {
// Intended to be called from the embedder. Returns a |MojoCore| initialized
// to contain pointers to each of the embedder's MojoCore functions.
-inline MojoSystemThunks MojoMakeSystemThunks() {
- MojoSystemThunks system_thunks = {
- sizeof(MojoSystemThunks),
+inline struct MojoSystemThunks MojoMakeSystemThunks() {
+ struct MojoSystemThunks system_thunks = {
+ sizeof(struct MojoSystemThunks),
MojoGetTimeTicksNow,
MojoClose,
MojoWait,
@@ -132,6 +133,7 @@ inline MojoSystemThunks MojoMakeSystemThunks() {
// "MojoSetSystemThunks"));
// The expected size of |system_thunks} is returned.
// The contents of |system_thunks| are copied.
-typedef size_t (*MojoSetSystemThunksFn)(const MojoSystemThunks* system_thunks);
+typedef size_t (*MojoSetSystemThunksFn)(
+ const struct MojoSystemThunks* system_thunks);
#endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
« build/go/go.py ('K') | « mojo/public/go/mojo/system/core.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698