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

Side by Side Diff: mojo/system/core.cc

Issue 23621056: Initial in-process implementation of some Mojo primitives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/public/system/core.h"
6
7 #include "mojo/system/core_impl.h"
8
9 extern "C" {
10
11 MojoResult MojoClose(MojoHandle handle) {
12 return mojo::system::CoreImpl::Get()->Close(handle);
13 }
14
15 MojoResult MojoWait(MojoHandle handle,
16 MojoWaitFlags flags,
17 MojoDeadline deadline) {
18 return mojo::system::CoreImpl::Get()->Wait(handle, flags, deadline);
19 }
20
21 MojoResult MojoWaitMany(const MojoHandle* handles,
22 const MojoWaitFlags* flags,
23 uint32_t num_handles,
24 MojoDeadline deadline) {
25 return mojo::system::CoreImpl::Get()->WaitMany(handles, flags, num_handles,
26 deadline);
27 }
28
29 MojoResult MojoCreateMessagePipe(MojoHandle* handle_0, MojoHandle* handle_1) {
30 return mojo::system::CoreImpl::Get()->CreateMessagePipe(handle_0, handle_1);
31 }
32
33 MojoResult MojoWriteMessage(MojoHandle handle,
34 const void* bytes, uint32_t num_bytes,
35 const MojoHandle* handles, uint32_t num_handles,
36 MojoWriteMessageFlags flags) {
37 return mojo::system::CoreImpl::Get()->WriteMessage(handle,
38 bytes, num_bytes,
39 handles, num_handles,
40 flags);
41 }
42
43 MojoResult MojoReadMessage(MojoHandle handle,
44 void* bytes, uint32_t* num_bytes,
45 MojoHandle* handles, uint32_t* num_handles,
46 MojoReadMessageFlags flags) {
47 return mojo::system::CoreImpl::Get()->ReadMessage(handle,
48 bytes, num_bytes,
49 handles, num_handles,
50 flags);
51 }
52
53 } // extern "C"
OLDNEW
« mojo/mojo.gyp ('K') | « mojo/public/tests/test_support.cc ('k') | mojo/system/core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698