Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppp.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 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.
4  */
5 
6 /* From ppp.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PPP_H_
9 #define PPAPI_C_PPP_H_
10 
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_module.h"
13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/ppb.h"
15 
24 #include "ppapi/c/pp_module.h"
25 #include "ppapi/c/pp_stdint.h"
26 #include "ppapi/c/ppb.h"
27 
28 #if __GNUC__ >= 4
29 #define PP_EXPORT __attribute__ ((visibility("default")))
30 #elif defined(_MSC_VER)
31 #define PP_EXPORT __declspec(dllexport)
32 #endif
33 
34 /* {PENDING: undefine PP_EXPORT?} */
35 
36 /* We don't want name mangling for these external functions. We only need
37  * 'extern "C"' if we're compiling with a C++ compiler.
38  */
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
63 PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
64  PPB_GetInterface get_browser_interface);
91 PP_EXPORT void PPP_ShutdownModule(void);
124 PP_EXPORT const void* PPP_GetInterface(const char* interface_name);
129 #ifdef __cplusplus
130 } /* extern "C" */
131 #endif
132 
133 
141 typedef int32_t (*PP_InitializeModule_Func)(
142  PP_Module module,
143  PPB_GetInterface get_browser_interface);
144 
148 typedef void (*PP_ShutdownModule_Func)(void);
149 
153 typedef const void* (*PP_GetInterface_Func)(const char* interface_name);
158 #endif /* PPAPI_C_PPP_H_ */
159 
PP_EXPORT void PPP_ShutdownModule(void)
int32_t PP_Module
Definition: pp_module.h:32
const void *(* PPB_GetInterface)(const char *interface_name)
Definition: ppb.h:42
int32_t(* PP_InitializeModule_Func)(PP_Module module, PPB_GetInterface get_browser_interface)
Definition: ppp.h:141
PP_EXPORT const void * PPP_GetInterface(const char *interface_name)
void(* PP_ShutdownModule_Func)(void)
Definition: ppp.h:148
PP_EXPORT int32_t PPP_InitializeModule(PP_Module module, PPB_GetInterface get_browser_interface)