Chromium Code Reviews| 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_UDPSocket_Private calls from the plugin. | |
| 6 # See ppapi/c/private/ppb_udp_socket_private.h for interface details. | |
| 7 | |
| 8 { | |
| 9 'name': 'PpbUDPSocketPrivate', | |
|
polina
2011/11/29 05:20:47
PpbUDPSocketPrivateRpc
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 10 'rpcs': [ | |
| 11 {'name': 'PPB_UDPSocket_Private_Create', | |
| 12 'inputs': [['instance_id', 'PP_Instance'], # PP_Instance | |
| 13 ], | |
| 14 'outputs': [['resource', 'PP_Resource'], # PP_Resource | |
| 15 ] | |
| 16 }, | |
| 17 {'name': 'PPB_UDPSocket_Private_IsUDPSocket', | |
| 18 'inputs': [['resource_id', 'PP_Resource'], # PP_Resource | |
| 19 ], | |
| 20 'outputs': [['is_udp_socket_private', 'int32_t'], # PP_Bool | |
| 21 ] | |
| 22 }, | |
| 23 {'name': 'PPB_UDPSocket_Private_Bind', | |
| 24 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | |
| 25 ['addr', 'char[]'], # PP_NetAddress_Private* | |
| 26 ['callback_id', 'int32_t'], | |
|
polina
2011/11/29 05:20:47
same as in the other file
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 27 ], | |
| 28 'outputs': [['pp_error', 'int32_t'], | |
| 29 ] | |
| 30 }, | |
| 31 {'name': 'PPB_UDPSocket_Private_RecvFrom', | |
| 32 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | |
| 33 ['num_bytes', 'int32_t'], | |
| 34 ['callback_id', 'int32_t'] | |
|
polina
2011/11/29 05:20:47
same as above
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 35 ], | |
| 36 'outputs': [['buffer', 'char[]'], | |
|
polina
2011/11/29 05:20:47
# char*
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 37 ['pp_error_or_bytes', 'int32_t'], | |
| 38 ] | |
| 39 }, | |
| 40 {'name': 'PPB_UDPSocket_Private_GetRecvFromAddress', | |
| 41 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | |
| 42 ], | |
| 43 'outputs': [['addr', 'char[]'], # PP_NetAddress_Private* | |
| 44 ['success', 'int32_t'], # PP_Bool | |
| 45 ] | |
| 46 }, | |
| 47 {'name': 'PPB_UDPSocket_Private_SendTo', | |
| 48 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | |
| 49 ['buffer', 'char[]'], | |
|
polina
2011/11/29 05:20:47
# char*
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 50 ['num_bytes', 'int32_t'], | |
| 51 ['addr', 'char[]'], # PP_NetAddress_Private* | |
| 52 ['callback_id', 'int32_t'] | |
|
polina
2011/11/29 05:20:47
same as above
ygorshenin
2011/11/29 13:25:18
Done.
| |
| 53 ], | |
| 54 'outputs': [['pp_error_or_bytes', 'int32_t'], | |
| 55 ] | |
| 56 }, | |
| 57 {'name': 'PPB_UDPSocket_Private_Close', | |
| 58 'inputs': [['udp_socket', 'PP_Resource'], # PP_Resource | |
| 59 ], | |
| 60 'outputs': [] | |
| 61 }, | |
| 62 ] | |
| 63 } | |
| OLD | NEW |