OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 The Native Client 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 # RPC methods used to implement nacl_file support. |
| 6 # See native_client/src/untrusted/ppapi/nacl_file.h for interface details. |
| 7 |
| 8 { |
| 9 'name': 'NaClFileRpc', |
| 10 'rpcs': [ |
| 11 {'name': 'StreamAsFile', |
| 12 'inputs': [['instance', 'PP_Instance'], |
| 13 ['url', 'string'], |
| 14 ['callback_id', 'int32_t'], |
| 15 ], |
| 16 # No return value as the callback will always |
| 17 # be invoked on success or failure. |
| 18 'outputs': [] |
| 19 }, |
| 20 {'name': 'GetFileDesc', |
| 21 'inputs': [['instance', 'PP_Instance'], |
| 22 ['url', 'string'], |
| 23 ], |
| 24 'outputs': [['file_desc', 'handle'], |
| 25 ] |
| 26 } |
| 27 ] |
| 28 } |
OLD | NEW |