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

Side by Side Diff: mojo/nacl/sfi/nacl_bindings_generator/interface.py

Issue 1859123003: Add Mojo{Set,Get}DataPipeConsumerOptions() to the NaCl system thunks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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
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 # pylint: disable=F0401 5 # pylint: disable=F0401
6 6
7 import interface_dsl 7 import interface_dsl
8 8
9 def MakeInterface(): 9 def MakeInterface():
10 mojo = interface_dsl.Interface() 10 mojo = interface_dsl.Interface()
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 f.Param('buffer_num_bytes').InOut('uint32_t') 75 f.Param('buffer_num_bytes').InOut('uint32_t')
76 f.Param('flags').In('MojoWriteDataFlags') 76 f.Param('flags').In('MojoWriteDataFlags')
77 # TODO(ncbray): support two-stage reads and writes. 77 # TODO(ncbray): support two-stage reads and writes.
78 # https://code.google.com/p/chromium/issues/detail?id=401761 78 # https://code.google.com/p/chromium/issues/detail?id=401761
79 f.IsBrokenInNaCl() 79 f.IsBrokenInNaCl()
80 80
81 f = mojo.Func('MojoEndWriteData', 'MojoResult') 81 f = mojo.Func('MojoEndWriteData', 'MojoResult')
82 f.Param('data_pipe_producer_handle').In('MojoHandle') 82 f.Param('data_pipe_producer_handle').In('MojoHandle')
83 f.Param('num_bytes_written').In('uint32_t') 83 f.Param('num_bytes_written').In('uint32_t')
84 84
85 f = mojo.Func('MojoSetDataPipeConsumerOptions', 'MojoResult')
86 f.Param('data_pipe_consumer_handle').In('MojoHandle')
87 p = f.Param('options')
88 p.InExtensibleStruct('MojoDataPipeConsumerOptions').Optional()
89
90 f = mojo.Func('MojoGetDataPipeConsumerOptions', 'MojoResult')
91 f.Param('data_pipe_consumer_handle').In('MojoHandle')
92 p = f.Param('options')
93 p.OutExtensibleStruct('MojoDataPipeConsumerOptions', 'options_num_bytes')
94 f.Param('options_num_bytes').In('uint32_t')
95
85 f = mojo.Func('MojoReadData', 'MojoResult') 96 f = mojo.Func('MojoReadData', 'MojoResult')
86 f.Param('data_pipe_consumer_handle').In('MojoHandle') 97 f.Param('data_pipe_consumer_handle').In('MojoHandle')
87 f.Param('elements').OutArray('void', 'num_bytes') 98 f.Param('elements').OutArray('void', 'num_bytes')
88 f.Param('num_bytes').InOut('uint32_t') 99 f.Param('num_bytes').InOut('uint32_t')
89 f.Param('flags').In('MojoReadDataFlags') 100 f.Param('flags').In('MojoReadDataFlags')
90 101
91 f = mojo.Func('MojoBeginReadData', 'MojoResult') 102 f = mojo.Func('MojoBeginReadData', 'MojoResult')
92 f.Param('data_pipe_consumer_handle').In('MojoHandle') 103 f.Param('data_pipe_consumer_handle').In('MojoHandle')
93 f.Param('buffer').Out('const void*') 104 f.Param('buffer').Out('const void*')
94 f.Param('buffer_num_bytes').InOut('uint32_t') 105 f.Param('buffer_num_bytes').InOut('uint32_t')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 142
132 f = mojo.Func('MojoUnmapBuffer', 'MojoResult') 143 f = mojo.Func('MojoUnmapBuffer', 'MojoResult')
133 f.Param('buffer').In('void*') 144 f.Param('buffer').In('void*')
134 # TODO(ncbray): support mmaping. 145 # TODO(ncbray): support mmaping.
135 # https://code.google.com/p/chromium/issues/detail?id=401761 146 # https://code.google.com/p/chromium/issues/detail?id=401761
136 f.IsBrokenInNaCl() 147 f.IsBrokenInNaCl()
137 148
138 mojo.Finalize() 149 mojo.Finalize()
139 150
140 return mojo 151 return mojo
OLDNEW
« no previous file with comments | « mojo/nacl/sfi/nacl_bindings/mojo_syscall.cc ('k') | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698