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

Side by Side Diff: mojo/public/platform/native/system_thunks.h

Issue 1783623005: Add mojo/c/system/{time.h,wait.h}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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
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 // Note: This header should be compilable as C. 5 // Note: This header should be compilable as C.
6 6
7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 7 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 8 #define MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include "mojo/public/c/system/buffer.h" 12 #include "mojo/public/c/system/buffer.h"
13 #include "mojo/public/c/system/data_pipe.h" 13 #include "mojo/public/c/system/data_pipe.h"
14 #include "mojo/public/c/system/functions.h"
15 #include "mojo/public/c/system/handle.h" 14 #include "mojo/public/c/system/handle.h"
16 #include "mojo/public/c/system/message_pipe.h" 15 #include "mojo/public/c/system/message_pipe.h"
17 #include "mojo/public/c/system/result.h" 16 #include "mojo/public/c/system/result.h"
18 #include "mojo/public/c/system/types.h" 17 #include "mojo/public/c/system/time.h"
18 #include "mojo/public/c/system/wait.h"
19 19
20 // The embedder needs to bind the basic Mojo Core functions of a DSO to those of 20 // The embedder needs to bind the basic Mojo Core functions of a DSO to those of
21 // the embedder when loading a DSO that is dependent on mojo_system. 21 // the embedder when loading a DSO that is dependent on mojo_system.
22 // The typical usage would look like: 22 // The typical usage would look like:
23 // base::ScopedNativeLibrary app_library( 23 // base::ScopedNativeLibrary app_library(
24 // base::LoadNativeLibrary(app_path_, &error)); 24 // base::LoadNativeLibrary(app_path_, &error));
25 // typedef MojoResult (*MojoSetSystemThunksFn)(MojoSystemThunks*); 25 // typedef MojoResult (*MojoSetSystemThunksFn)(MojoSystemThunks*);
26 // MojoSetSystemThunksFn mojo_set_system_thunks_fn = 26 // MojoSetSystemThunksFn mojo_set_system_thunks_fn =
27 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer( 27 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer(
28 // "MojoSetSystemThunks")); 28 // "MojoSetSystemThunks"));
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // a DSO linked with mojo_system. For example: 151 // a DSO linked with mojo_system. For example:
152 // MojoSetSystemThunksFn mojo_set_system_thunks_fn = 152 // MojoSetSystemThunksFn mojo_set_system_thunks_fn =
153 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer( 153 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer(
154 // "MojoSetSystemThunks")); 154 // "MojoSetSystemThunks"));
155 // The expected size of |system_thunks} is returned. 155 // The expected size of |system_thunks} is returned.
156 // The contents of |system_thunks| are copied. 156 // The contents of |system_thunks| are copied.
157 typedef size_t (*MojoSetSystemThunksFn)( 157 typedef size_t (*MojoSetSystemThunksFn)(
158 const struct MojoSystemThunks* system_thunks); 158 const struct MojoSystemThunks* system_thunks);
159 159
160 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 160 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698