| OLD | NEW |
| 1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2010 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 # This file declares the RPC methods used to implement PPAPI calls from | 5 # This file declares the RPC methods used to implement PPAPI calls from |
| 6 # the browser to the plugin. It implements the interface in ppapi/c/ppp.h. | 6 # the browser to the plugin. It implements the interface in ppapi/c/ppp.h. |
| 7 { | 7 { |
| 8 'name': 'PppRpc', | 8 'name': 'PppRpc', |
| 9 'rpcs': [ | 9 'rpcs': [ |
| 10 # PPP_Initialize is called once to initialize the plugin. | 10 # PPP_Initialize is called once to initialize the plugin. |
| 11 # It is effectively a class initializer for the plugin type. | 11 # It is effectively a class initializer for the plugin type. |
| 12 {'name': 'PPP_InitializeModule', | 12 {'name': 'PPP_InitializeModule', |
| 13 'inputs': [['pid', 'int32_t'], | 13 'inputs': [['pid', 'int32_t'], |
| 14 ['module', 'int64_t'], | 14 ['module', 'PP_Module'], |
| 15 ['upcall_channel_desc', 'handle'], | 15 ['upcall_channel_desc', 'handle'], |
| 16 ['service_description', 'string'], | 16 ['service_description', 'string'], |
| 17 ], | 17 ], |
| 18 'outputs': [['nacl_pid', 'int32_t'], | 18 'outputs': [['nacl_pid', 'int32_t'], |
| 19 ['success', 'int32_t'], | 19 ['success', 'int32_t'], |
| 20 ] | 20 ] |
| 21 }, | 21 }, |
| 22 # PPP_ShutdownModule stops the plugin. | 22 # PPP_ShutdownModule stops the plugin. |
| 23 {'name': 'PPP_ShutdownModule', | 23 {'name': 'PPP_ShutdownModule', |
| 24 'inputs': [], | 24 'inputs': [], |
| 25 'outputs': [] | 25 'outputs': [] |
| 26 }, | 26 }, |
| 27 # PPP_GetInterface checks whether the plugin exports a specified | 27 # PPP_GetInterface checks whether the plugin exports a specified |
| 28 # interface name. | 28 # interface name. |
| 29 {'name': 'PPP_GetInterface', | 29 {'name': 'PPP_GetInterface', |
| 30 'inputs': [['interface_name', 'string'], | 30 'inputs': [['interface_name', 'string'], |
| 31 ], | 31 ], |
| 32 'outputs': [['exports_interface_name', 'int32_t'], | 32 'outputs': [['exports_interface_name', 'int32_t'], |
| 33 ] | 33 ] |
| 34 }, | 34 }, |
| 35 ] | 35 ] |
| 36 } | 36 } |
| OLD | NEW |