OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 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. |
| 7 { |
| 8 'name': 'PppRpc', |
| 9 'rpcs': [ |
| 10 # PPP_Initialize is called once to initialize the plugin. |
| 11 # It is effectively a class initializer for the plugin type. |
| 12 {'name': 'PPP_InitializeModule', |
| 13 'inputs': [['pid', 'int32_t'], |
| 14 ['module', 'PP_Module'], |
| 15 ['upcall_channel_desc', 'handle'], |
| 16 ['service_description', 'string'], |
| 17 ], |
| 18 'outputs': [['nacl_pid', 'int32_t'], |
| 19 ['success', 'int32_t'], |
| 20 ] |
| 21 }, |
| 22 # PPP_ShutdownModule stops the plugin. |
| 23 {'name': 'PPP_ShutdownModule', |
| 24 'inputs': [], |
| 25 'outputs': [] |
| 26 }, |
| 27 # PPP_GetInterface checks whether the plugin exports a specified |
| 28 # interface name. |
| 29 {'name': 'PPP_GetInterface', |
| 30 'inputs': [['interface_name', 'string'], |
| 31 ], |
| 32 'outputs': [['exports_interface_name', 'int32_t'], |
| 33 ] |
| 34 }, |
| 35 ] |
| 36 } |
OLD | NEW |