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

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

Issue 2000253002: Add thunks for MojoDuplicateHandle[WithReducedRights](). (Closed) Base URL: https://github.com/domokit/mojo.git@work792_dup_handle_1
Patch Set: Created 4 years, 6 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return irt_mojo->MojoClose(handle); 53 return irt_mojo->MojoClose(handle);
54 } 54 }
55 55
56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) { 56 MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) {
57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 57 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
58 if (!irt_mojo) 58 if (!irt_mojo)
59 abort(); 59 abort();
60 return irt_mojo->MojoGetRights(handle, rights); 60 return irt_mojo->MojoGetRights(handle, rights);
61 } 61 }
62 62
63 MojoResult MojoDuplicateHandleWithReducedRights(
64 MojoHandle handle,
65 MojoHandleRights rights_to_remove,
66 MojoHandle* new_handle) {
67 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
68 if (!irt_mojo)
69 abort();
70 return irt_mojo->MojoDuplicateHandleWithReducedRights(
71 handle, rights_to_remove, new_handle);
72 }
73
74 MojoResult MojoDuplicateHandle(MojoHandle handle, MojoHandle* new_handle) {
75 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
76 if (!irt_mojo)
77 abort();
78 return irt_mojo->MojoDuplicateHandle(handle, new_handle);
79 }
80
63 MojoResult MojoWait(MojoHandle handle, 81 MojoResult MojoWait(MojoHandle handle,
64 MojoHandleSignals signals, 82 MojoHandleSignals signals,
65 MojoDeadline deadline, 83 MojoDeadline deadline,
66 struct MojoHandleSignalsState* signals_state) { 84 struct MojoHandleSignalsState* signals_state) {
67 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 85 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
68 if (!irt_mojo) 86 if (!irt_mojo)
69 abort(); 87 abort();
70 return irt_mojo->MojoWait(handle, signals, deadline, signals_state); 88 return irt_mojo->MojoWait(handle, signals, deadline, signals_state);
71 } 89 }
72 90
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 flags); 295 flags);
278 } 296 }
279 297
280 MojoResult MojoUnmapBuffer(void* buffer) { 298 MojoResult MojoUnmapBuffer(void* buffer) {
281 struct nacl_irt_mojo* irt_mojo = get_irt_mojo(); 299 struct nacl_irt_mojo* irt_mojo = get_irt_mojo();
282 if (!irt_mojo) 300 if (!irt_mojo)
283 abort(); 301 abort();
284 return irt_mojo->MojoUnmapBuffer(buffer); 302 return irt_mojo->MojoUnmapBuffer(buffer);
285 } 303 }
286 304
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