OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 #include "ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h" |
| 8 |
7 #include "ppapi/native_client/src/untrusted/irt_stub/ppapi_start.h" | 9 #include "ppapi/native_client/src/untrusted/irt_stub/ppapi_start.h" |
8 | 10 |
9 /* | 11 /* |
10 * These are dangling references to functions that the application must define. | 12 * These are dangling references to functions that the application must define. |
11 */ | 13 */ |
12 static const struct PP_StartFunctions ppapi_app_start_callbacks = { | 14 static const struct PP_StartFunctions ppapi_app_start_callbacks = { |
13 PPP_InitializeModule, | 15 PPP_InitializeModule, |
14 PPP_ShutdownModule, | 16 PPP_ShutdownModule, |
15 PPP_GetInterface | 17 PPP_GetInterface |
16 }; | 18 }; |
17 | 19 |
18 /* | 20 /* |
19 * The application's main (or the one supplied in this library) calls this | 21 * The application's main (or the one supplied in this library) calls this |
20 * to start the PPAPI world. | 22 * to start the PPAPI world. |
21 */ | 23 */ |
22 int PpapiPluginMain(void) { | 24 int PpapiPluginMain(void) { |
23 return PpapiPluginStart(&ppapi_app_start_callbacks); | 25 return PpapiPluginStart(&ppapi_app_start_callbacks); |
24 } | 26 } |
OLD | NEW |