OLD | NEW |
(Empty) | |
| 1 /* Copyright 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 /* This is defined to allow an executable to force inclusion of this object |
| 17 * file. Otherwise PPP_* functions won't be linked in (because they are not |
| 18 * needed until -lppapi on the link-line, which is usually last. */ |
| 19 FORCE_LINK_THIS(ps_entry) |
| 20 |
| 21 int32_t PPP_InitializeModule(PP_Module module, PPB_GetInterface get_interface) { |
| 22 g_ps_get_interface = get_interface; |
| 23 PSInterfaceInit(); |
| 24 return PP_OK; |
| 25 } |
| 26 |
| 27 const void* PPP_GetInterface(const char* interface_name) { |
| 28 return PSGetInterfaceImplementation(interface_name); |
| 29 } |
| 30 |
| 31 void PPP_ShutdownModule(void) { |
| 32 } |
OLD | NEW |