OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client 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 # RPC methods used to implement PPB_UDPSocket_Private calls from the plugin. | 5 # RPC methods used to implement PPB_UDPSocket_Private calls from the plugin. |
6 # See ppapi/c/private/ppb_udp_socket_private.h for interface details. | 6 # See ppapi/c/private/ppb_udp_socket_private.h for interface details. |
7 | 7 |
8 { | 8 { |
9 'name': 'PpbUDPSocketPrivateRpc', | 9 'name': 'PpbUDPSocketPrivateRpc', |
10 'rpcs': [ | 10 'rpcs': [ |
11 {'name': 'PPB_UDPSocket_Private_Create', | 11 {'name': 'PPB_UDPSocket_Private_Create', |
12 'inputs': [['instance_id', 'PP_Instance'], # PP_Instance | 12 'inputs': [['instance_id', 'PP_Instance'], # PP_Instance |
13 ], | 13 ], |
14 'outputs': [['resource', 'PP_Resource'], # PP_Resource | 14 'outputs': [['resource', 'PP_Resource'], # PP_Resource |
15 ] | 15 ] |
16 }, | 16 }, |
17 {'name': 'PPB_UDPSocket_Private_IsUDPSocket', | 17 {'name': 'PPB_UDPSocket_Private_IsUDPSocket', |
18 'inputs': [['resource_id', 'PP_Resource'], # PP_Resource | 18 'inputs': [['resource_id', 'PP_Resource'], # PP_Resource |
19 ], | 19 ], |
20 'outputs': [['is_udp_socket_private', 'int32_t'], # PP_Bool | 20 'outputs': [['is_udp_socket_private', 'int32_t'], # PP_Bool |
21 ] | 21 ] |
22 }, | 22 }, |
| 23 {'name': 'PPB_UDPSocket_Private_SetSocketFeature', |
| 24 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource |
| 25 ['name', 'int32_t'], # PP_UDPSocketFeature_Private |
| 26 ['value', 'char[]'], # PP_Var |
| 27 ], |
| 28 'outputs': [['pp_error', 'int32_t'], |
| 29 ] |
| 30 }, |
23 {'name': 'PPB_UDPSocket_Private_Bind', | 31 {'name': 'PPB_UDPSocket_Private_Bind', |
24 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | 32 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource |
25 ['addr', 'char[]'], # PP_NetAddress_Private* | 33 ['addr', 'char[]'], # PP_NetAddress_Private* |
26 ['callback_id', 'int32_t'], # PP_CompletionCallback | 34 ['callback_id', 'int32_t'], # PP_CompletionCallback |
27 ], | 35 ], |
28 'outputs': [['pp_error', 'int32_t'], | 36 'outputs': [['pp_error', 'int32_t'], |
29 ] | 37 ] |
30 }, | 38 }, |
31 {'name': 'PPB_UDPSocket_Private_GetBoundAddress', | 39 {'name': 'PPB_UDPSocket_Private_GetBoundAddress', |
32 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | 40 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource |
(...skipping 28 matching lines...) Expand all Loading... |
61 'outputs': [['pp_error_or_bytes', 'int32_t'], | 69 'outputs': [['pp_error_or_bytes', 'int32_t'], |
62 ] | 70 ] |
63 }, | 71 }, |
64 {'name': 'PPB_UDPSocket_Private_Close', | 72 {'name': 'PPB_UDPSocket_Private_Close', |
65 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | 73 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource |
66 ], | 74 ], |
67 'outputs': [] | 75 'outputs': [] |
68 }, | 76 }, |
69 ] | 77 ] |
70 } | 78 } |
OLD | NEW |