1 // Copyright 2014 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 "build/build_config.h"
6 #include "ppapi/nacl_irt/irt_interfaces.h"
7 #include "ppapi/nacl_irt/irt_ppapi.h"
8 #include "ppapi/nacl_irt/plugin_main.h"
9 #include "ppapi/nacl_irt/public/irt_ppapi.h"
11 static struct PP_StartFunctions g_pp_functions
;
13 int irt_ppapi_start(const struct PP_StartFunctions
* funcs
) {
14 g_pp_functions
= *funcs
;
15 return PpapiPluginMain();
18 int32_t PPP_InitializeModule(PP_Module module_id
,
19 PPB_GetInterface get_browser_interface
) {
20 return g_pp_functions
.PPP_InitializeModule(module_id
, get_browser_interface
);
23 void PPP_ShutdownModule(void) {
24 g_pp_functions
.PPP_ShutdownModule();
27 const void* PPP_GetInterface(const char* interface_name
) {
28 return g_pp_functions
.PPP_GetInterface(interface_name
);
31 const struct nacl_irt_ppapihook nacl_irt_ppapihook
= {
33 PpapiPluginRegisterThreadCreator
,