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"
10 #include "ppapi_simple/ps_internal.h"
12 /* This is defined to allow an executable to force inclusion of this object
13 * file. Otherwise PPP_* functions won't be linked in (because they are not
14 * needed until -lppapi on the link-line, which is usually last. */
15 FORCE_LINK_THIS(ps_entry
)
17 int32_t PPP_InitializeModule(PP_Module module
, PPB_GetInterface get_interface
) {
18 g_ps_get_interface
= get_interface
;
23 const void* PPP_GetInterface(const char* interface_name
) {
24 return PSGetInterfaceImplementation(interface_name
);
27 void PPP_ShutdownModule(void) {