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

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

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 #include <stdint.h>
11 12
12 #include "mojo/public/c/system/core.h" 13 #include "mojo/public/c/system/core.h"
13 14
14 // The embedder needs to bind the basic Mojo Core functions of a DSO to those of 15 // The embedder needs to bind the basic Mojo Core functions of a DSO to those of
15 // the embedder when loading a DSO that is dependent on mojo_system. 16 // the embedder when loading a DSO that is dependent on mojo_system.
16 // The typical usage would look like: 17 // The typical usage would look like:
17 // base::ScopedNativeLibrary app_library( 18 // base::ScopedNativeLibrary app_library(
18 // base::LoadNativeLibrary(app_path_, &error)); 19 // base::LoadNativeLibrary(app_path_, &error));
19 // typedef MojoResult (*MojoSetSystemThunksFn)(MojoSystemThunks*); 20 // typedef MojoResult (*MojoSetSystemThunksFn)(MojoSystemThunks*);
20 // MojoSetSystemThunksFn mojo_set_system_thunks_fn = 21 // MojoSetSystemThunksFn mojo_set_system_thunks_fn =
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // a DSO linked with mojo_system. For example: 154 // a DSO linked with mojo_system. For example:
154 // MojoSetSystemThunksFn mojo_set_system_thunks_fn = 155 // MojoSetSystemThunksFn mojo_set_system_thunks_fn =
155 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer( 156 // reinterpret_cast<MojoSetSystemThunksFn>(app_library.GetFunctionPointer(
156 // "MojoSetSystemThunks")); 157 // "MojoSetSystemThunks"));
157 // The expected size of |system_thunks} is returned. 158 // The expected size of |system_thunks} is returned.
158 // The contents of |system_thunks| are copied. 159 // The contents of |system_thunks| are copied.
159 typedef size_t (*MojoSetSystemThunksFn)( 160 typedef size_t (*MojoSetSystemThunksFn)(
160 const struct MojoSystemThunks* system_thunks); 161 const struct MojoSystemThunks* system_thunks);
161 162
162 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_ 163 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_SYSTEM_THUNKS_H_
OLDNEW
« no previous file with comments | « mojo/public/platform/native/gles2_thunks.cc ('k') | mojo/public/platform/native/system_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698