| OLD | NEW |
| 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 #include "mojo/edk/embedder/entrypoints.h" | 5 #include "mojo/edk/embedder/entrypoints.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "mojo/edk/embedder/embedder_internal.h" | 9 #include "mojo/edk/embedder/embedder_internal.h" |
| 10 #include "mojo/edk/system/core.h" | 10 #include "mojo/edk/system/core.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 return g_core->UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, | 247 return g_core->UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, |
| 248 num_bytes, flags); | 248 num_bytes, flags); |
| 249 } | 249 } |
| 250 | 250 |
| 251 MojoResult MojoNotifyBadMessageImpl(MojoMessageHandle message, | 251 MojoResult MojoNotifyBadMessageImpl(MojoMessageHandle message, |
| 252 const char* error, | 252 const char* error, |
| 253 size_t error_num_bytes) { | 253 size_t error_num_bytes) { |
| 254 return g_core->NotifyBadMessage(message, error, error_num_bytes); | 254 return g_core->NotifyBadMessage(message, error, error_num_bytes); |
| 255 } | 255 } |
| 256 | 256 |
| 257 MojoResult MojoGetPropertyImpl(MojoPropertyType type, void* value) { |
| 258 return g_core->GetProperty(type, value); |
| 259 } |
| 260 |
| 257 } // extern "C" | 261 } // extern "C" |
| 258 | 262 |
| 259 namespace mojo { | 263 namespace mojo { |
| 260 namespace edk { | 264 namespace edk { |
| 261 | 265 |
| 262 MojoSystemThunks MakeSystemThunks() { | 266 MojoSystemThunks MakeSystemThunks() { |
| 263 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), | 267 MojoSystemThunks system_thunks = {sizeof(MojoSystemThunks), |
| 264 MojoGetTimeTicksNowImpl, | 268 MojoGetTimeTicksNowImpl, |
| 265 MojoCloseImpl, | 269 MojoCloseImpl, |
| 266 MojoWaitImpl, | 270 MojoWaitImpl, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 288 MojoFuseMessagePipesImpl, | 292 MojoFuseMessagePipesImpl, |
| 289 MojoWriteMessageNewImpl, | 293 MojoWriteMessageNewImpl, |
| 290 MojoReadMessageNewImpl, | 294 MojoReadMessageNewImpl, |
| 291 MojoAllocMessageImpl, | 295 MojoAllocMessageImpl, |
| 292 MojoFreeMessageImpl, | 296 MojoFreeMessageImpl, |
| 293 MojoGetMessageBufferImpl, | 297 MojoGetMessageBufferImpl, |
| 294 MojoWrapPlatformHandleImpl, | 298 MojoWrapPlatformHandleImpl, |
| 295 MojoUnwrapPlatformHandleImpl, | 299 MojoUnwrapPlatformHandleImpl, |
| 296 MojoWrapPlatformSharedBufferHandleImpl, | 300 MojoWrapPlatformSharedBufferHandleImpl, |
| 297 MojoUnwrapPlatformSharedBufferHandleImpl, | 301 MojoUnwrapPlatformSharedBufferHandleImpl, |
| 298 MojoNotifyBadMessageImpl}; | 302 MojoNotifyBadMessageImpl, |
| 303 MojoGetPropertyImpl}; |
| 299 return system_thunks; | 304 return system_thunks; |
| 300 } | 305 } |
| 301 | 306 |
| 302 } // namespace edk | 307 } // namespace edk |
| 303 } // namespace mojo | 308 } // namespace mojo |
| OLD | NEW |