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

Side by Side Diff: mojo/public/platform/nacl/mojo_irt.h

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, 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/platform/nacl/libmojo.cc ('k') | mojo/public/platform/native/system_impl_private.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ 8 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_
9 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ 9 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_
10 10
11 #include "mojo/public/c/system/buffer.h" 11 #include "mojo/public/c/system/buffer.h"
12 #include "mojo/public/c/system/data_pipe.h" 12 #include "mojo/public/c/system/data_pipe.h"
13 #include "mojo/public/c/system/handle.h" 13 #include "mojo/public/c/system/handle.h"
14 #include "mojo/public/c/system/message_pipe.h" 14 #include "mojo/public/c/system/message_pipe.h"
15 #include "mojo/public/c/system/result.h" 15 #include "mojo/public/c/system/result.h"
16 #include "mojo/public/c/system/time.h" 16 #include "mojo/public/c/system/time.h"
17 17
18 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1" 18 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1"
19 19
20 struct nacl_irt_mojo { 20 struct nacl_irt_mojo {
21 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle); 21 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle);
22 MojoTimeTicks (*MojoGetTimeTicksNow)(); 22 MojoTimeTicks (*MojoGetTimeTicksNow)();
23 MojoResult (*MojoClose)(MojoHandle handle); 23 MojoResult (*MojoClose)(MojoHandle handle);
24 MojoResult (*MojoGetRights)(MojoHandle handle, MojoHandleRights* rights); 24 MojoResult (*MojoGetRights)(MojoHandle handle, MojoHandleRights* rights);
25 MojoResult (*MojoDuplicateHandleWithReducedRights)(
26 MojoHandle handle,
27 MojoHandleRights rights_to_remove,
28 MojoHandle* new_handle);
29 MojoResult (*MojoDuplicateHandle)(MojoHandle handle, MojoHandle* new_handle);
25 MojoResult (*MojoWait)(MojoHandle handle, 30 MojoResult (*MojoWait)(MojoHandle handle,
26 MojoHandleSignals signals, 31 MojoHandleSignals signals,
27 MojoDeadline deadline, 32 MojoDeadline deadline,
28 struct MojoHandleSignalsState* signals_state); 33 struct MojoHandleSignalsState* signals_state);
29 MojoResult (*MojoWaitMany)(const MojoHandle* handles, 34 MojoResult (*MojoWaitMany)(const MojoHandle* handles,
30 const MojoHandleSignals* signals, 35 const MojoHandleSignals* signals,
31 uint32_t num_handles, 36 uint32_t num_handles,
32 MojoDeadline deadline, 37 MojoDeadline deadline,
33 uint32_t* result_index, 38 uint32_t* result_index,
34 struct MojoHandleSignalsState* signals_states); 39 struct MojoHandleSignalsState* signals_states);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 116
112 size_t mojo_irt_query(const char* interface_ident, 117 size_t mojo_irt_query(const char* interface_ident,
113 void* table, 118 void* table,
114 size_t tablesize); 119 size_t tablesize);
115 120
116 #ifdef __cplusplus 121 #ifdef __cplusplus
117 } 122 }
118 #endif 123 #endif
119 124
120 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ 125 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_
OLDNEW
« no previous file with comments | « mojo/public/platform/nacl/libmojo.cc ('k') | mojo/public/platform/native/system_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698