OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2015 The Chromium 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 #include <ppapi/c/pp_errors.h> |
| 6 #include <ppapi/c/pp_module.h> |
| 7 #include <ppapi/c/ppb.h> |
| 8 |
| 9 #include "ppapi_simple/ps_interface.h" |
| 10 |
| 11 /* Defined in ps_instance.c. */ |
| 12 const void* PSGetInterfaceImplementation(const char*); |
| 13 |
| 14 extern PPB_GetInterface g_ps_get_interface; |
| 15 |
| 16 int32_t PPP_InitializeModule(PP_Module module, PPB_GetInterface get_interface) { |
| 17 g_ps_get_interface = get_interface; |
| 18 PSInterfaceInit(); |
| 19 return PP_OK; |
| 20 } |
| 21 |
| 22 const void* PPP_GetInterface(const char* interface_name) { |
| 23 return PSGetInterfaceImplementation(interface_name); |
| 24 } |
| 25 |
| 26 void PPP_ShutdownModule(void) { |
| 27 } |
OLD | NEW |