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. */
5 #include <ppapi/c/pp_errors.h>
6 #include <ppapi/c/pp_module.h>
7 #include <ppapi/c/ppb.h>
9 #include "ppapi_simple/ps_interface.h"
11 /* Defined in ps_instance.c. */
12 const void* PSGetInterfaceImplementation(const char*);
14 extern PPB_GetInterface g_ps_get_interface
;
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
)
21 int32_t PPP_InitializeModule(PP_Module module
, PPB_GetInterface get_interface
) {
22 g_ps_get_interface
= get_interface
;
27 const void* PPP_GetInterface(const char* interface_name
) {
28 return PSGetInterfaceImplementation(interface_name
);
31 void PPP_ShutdownModule(void) {