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

Side by Side Diff: mojo/public/platform/nacl/libmojo.cc

Issue 1993283002: Add thunks for MojoGetRights(), etc. (Closed) Base URL: https://github.com/domokit/mojo.git@work795_core_get_rights
Patch Set: I'm an idiot Created 4 years, 7 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
« no previous file with comments | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/platform/nacl/mojo_irt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // WARNING this file was generated by generate_nacl_bindings.py 5 // WARNING this file was generated by generate_nacl_bindings.py
6 // Do not edit by hand. 6 // Do not edit by hand.
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "mojo/public/c/system/buffer.h" 10 #include "mojo/public/c/system/buffer.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return irt_mojo->MojoGetTimeTicksNow(); 46 return irt_mojo->MojoGetTimeTicksNow();
47 } 47 }
48 48
49 MojoResult MojoClose(MojoHandle handle) { 49 MojoResult MojoClose(MojoHandle handle) {
50 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 50 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
51 if (!irt_mojo) 51 if (!irt_mojo)
52 abort(); 52 abort();
53 return irt_mojo->MojoClose(handle); 53 return irt_mojo->MojoClose(handle);
54 } 54 }
55 55
56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) {
57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
58 if (!irt_mojo)
59 abort();
60 return irt_mojo->MojoGetRights(handle, rights);
61 }
62
56 MojoResult MojoWait(MojoHandle handle, 63 MojoResult MojoWait(MojoHandle handle,
57 MojoHandleSignals signals, 64 MojoHandleSignals signals,
58 MojoDeadline deadline, 65 MojoDeadline deadline,
59 struct MojoHandleSignalsState* signals_state) { 66 struct MojoHandleSignalsState* signals_state) {
60 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 67 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
61 if (!irt_mojo) 68 if (!irt_mojo)
62 abort(); 69 abort();
63 return irt_mojo->MojoWait(handle, signals, deadline, signals_state); 70 return irt_mojo->MojoWait(handle, signals, deadline, signals_state);
64 } 71 }
65 72
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 flags); 277 flags);
271 } 278 }
272 279
273 MojoResult MojoUnmapBuffer(void* buffer) { 280 MojoResult MojoUnmapBuffer(void* buffer) {
274 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 281 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
275 if (!irt_mojo) 282 if (!irt_mojo)
276 abort(); 283 abort();
277 return irt_mojo->MojoUnmapBuffer(buffer); 284 return irt_mojo->MojoUnmapBuffer(buffer);
278 } 285 }
279 286
OLDNEW
« no previous file with comments | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/platform/nacl/mojo_irt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698