| Index: mojo/public/c/system/thunks.cc
|
| diff --git a/mojo/public/platform/native/system_thunks.cc b/mojo/public/c/system/thunks.cc
|
| similarity index 98%
|
| rename from mojo/public/platform/native/system_thunks.cc
|
| rename to mojo/public/c/system/thunks.cc
|
| index 86447c1cdebf2fe3c9fe19d9a5c62860edf19e80..fe2793b7c5a1a75ac58298563e606233e4e2377d 100644
|
| --- a/mojo/public/platform/native/system_thunks.cc
|
| +++ b/mojo/public/c/system/thunks.cc
|
| @@ -2,14 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "mojo/public/platform/native/system_thunks.h"
|
| +#include "mojo/public/c/system/thunks.h"
|
|
|
| #include <assert.h>
|
| #include <stddef.h>
|
| #include <stdint.h>
|
|
|
| -#include "mojo/public/platform/native/thunk_export.h"
|
| -
|
| extern "C" {
|
|
|
| static MojoSystemThunks g_thunks = {0};
|
| @@ -277,11 +275,10 @@ MojoResult MojoUnwrapPlatformSharedBufferHandle(
|
| num_bytes, flags);
|
| }
|
|
|
| -extern "C" THUNK_EXPORT size_t MojoSetSystemThunks(
|
| - const MojoSystemThunks* system_thunks) {
|
| +} // extern "C"
|
| +
|
| +size_t MojoEmbedderSetSystemThunks(const MojoSystemThunks* system_thunks) {
|
| if (system_thunks->size >= sizeof(g_thunks))
|
| g_thunks = *system_thunks;
|
| return sizeof(g_thunks);
|
| }
|
| -
|
| -} // extern "C"
|
|
|