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 PPB_FileIO calls from the plugin. |
| 6 # See ppapi/c/ppb_file_io.h for interface details. |
| 7 |
| 8 { |
| 9 'name': 'PpbFileIORpc', |
| 10 'rpcs': [ |
| 11 {'name': 'PPB_FileIO_Create', |
| 12 'inputs': [['instance', 'PP_Instance'], |
| 13 ], |
| 14 'outputs': [['resource', 'PP_Resource'], |
| 15 ] |
| 16 }, |
| 17 {'name': 'PPB_FileIO_IsFileIO', |
| 18 'inputs': [['resource', 'PP_Resource'], |
| 19 ], |
| 20 'outputs': [['success', 'int32_t'], # PP_Bool |
| 21 ] |
| 22 }, |
| 23 {'name': 'PPB_FileIO_Open', |
| 24 'inputs': [['file_io', 'PP_Resource'], |
| 25 ['file_ref', 'PP_Resource'], |
| 26 ['open_flags', 'int32_t'], |
| 27 ['callback_id', 'int32_t'], |
| 28 ], |
| 29 'outputs': [['pp_error', 'int32_t'], |
| 30 ] |
| 31 }, |
| 32 {'name': 'PPB_FileIO_Query', |
| 33 'inputs': [['file_io', 'PP_Resource'], |
| 34 ['bytes_to_read', 'int32_t'], |
| 35 ['callback_id', 'int32_t'], |
| 36 ], |
| 37 'outputs': [['info', 'char[]'], # PP_FileInfo |
| 38 ['pp_error', 'int32_t'], |
| 39 ] |
| 40 }, |
| 41 {'name': 'PPB_FileIO_Touch', |
| 42 'inputs': [['file_io', 'PP_Resource'], |
| 43 ['last_access_time', 'double'], # PP_Time |
| 44 ['last_modified_time', 'double'], # PP_Time |
| 45 ['callback_id', 'int32_t'], |
| 46 ], |
| 47 'outputs': [['pp_error', 'int32_t'], |
| 48 ] |
| 49 }, |
| 50 {'name': 'PPB_FileIO_Read', |
| 51 'inputs': [['file_io', 'PP_Resource'], |
| 52 ['offset', 'int64_t'], |
| 53 ['bytes_to_read', 'int32_t'], |
| 54 ['callback_id', 'int32_t'], |
| 55 ], |
| 56 'outputs': [['buffer', 'char[]'], |
| 57 ['pp_error_or_bytes', 'int32_t'], |
| 58 ] |
| 59 }, |
| 60 {'name': 'PPB_FileIO_Write', |
| 61 'inputs': [['file_io', 'PP_Resource'], |
| 62 ['offset', 'int64_t'], |
| 63 ['buffer', 'char[]'], |
| 64 ['bytes_to_write', 'int32_t'], |
| 65 ['callback_id', 'int32_t'], |
| 66 ], |
| 67 'outputs': [['pp_error_or_bytes', 'int32_t'], |
| 68 ] |
| 69 }, |
| 70 {'name': 'PPB_FileIO_SetLength', |
| 71 'inputs': [['file_io', 'PP_Resource'], |
| 72 ['length', 'int64_t'], |
| 73 ['callback_id', 'int32_t'], |
| 74 ], |
| 75 'outputs': [['pp_error', 'int32_t'], |
| 76 ] |
| 77 }, |
| 78 {'name': 'PPB_FileIO_Flush', |
| 79 'inputs': [['file_io', 'PP_Resource'], |
| 80 ['callback_id', 'int32_t'], |
| 81 ], |
| 82 'outputs': [['pp_error', 'int32_t'], |
| 83 ] |
| 84 }, |
| 85 {'name': 'PPB_FileIO_Close', |
| 86 'inputs': [['file_io', 'PP_Resource'], |
| 87 ], |
| 88 'outputs': [] |
| 89 } |
| 90 ] |
| 91 } |
OLD | NEW |