| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 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 #ifndef PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ | 7 #ifndef PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ |
| 8 #define PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ | 8 #define PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 #include <stdint.h> |
| 11 | 12 |
| 12 #include "ppapi/c/ppp.h" | 13 #include "ppapi/c/ppp.h" |
| 13 | 14 |
| 14 struct PP_StartFunctions { | 15 struct PP_StartFunctions { |
| 15 int32_t (*PPP_InitializeModule)(PP_Module module_id, | 16 int32_t (*PPP_InitializeModule)(PP_Module module_id, |
| 16 PPB_GetInterface get_browser_interface); | 17 PPB_GetInterface get_browser_interface); |
| 17 void (*PPP_ShutdownModule)(void); | 18 void (*PPP_ShutdownModule)(void); |
| 18 const void* (*PPP_GetInterface)(const char* interface_name); | 19 const void* (*PPP_GetInterface)(const char* interface_name); |
| 19 }; | 20 }; |
| 20 | 21 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 int (*thread_join)(uintptr_t tid); | 34 int (*thread_join)(uintptr_t tid); |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" | 37 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" |
| 37 struct nacl_irt_ppapihook { | 38 struct nacl_irt_ppapihook { |
| 38 int (*ppapi_start)(const struct PP_StartFunctions*); | 39 int (*ppapi_start)(const struct PP_StartFunctions*); |
| 39 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*); | 40 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions*); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ | 43 #endif // PPAPI_NACL_IRT_PUBLIC_IRT_PPAPI_H_ |
| OLD | NEW |