| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 |
| 6 /* From ppp.idl modified Sat Jul 16 16:50:26 2011. */ |
| 7 |
| 5 #ifndef PPAPI_C_PPP_H_ | 8 #ifndef PPAPI_C_PPP_H_ |
| 6 #define PPAPI_C_PPP_H_ | 9 #define PPAPI_C_PPP_H_ |
| 7 | 10 |
| 11 #include "ppapi/c/pp_macros.h" |
| 12 |
| 13 /** |
| 14 * @file |
| 15 * This file defines three functions that your module must |
| 16 * implement to interact with the browser. |
| 17 */ |
| 18 |
| 19 |
| 20 |
| 8 #include "ppapi/c/pp_module.h" | 21 #include "ppapi/c/pp_module.h" |
| 9 #include "ppapi/c/pp_stdint.h" | 22 #include "ppapi/c/pp_stdint.h" |
| 10 #include "ppapi/c/ppb.h" | 23 #include "ppapi/c/ppb.h" |
| 11 | 24 |
| 12 #if __GNUC__ >= 4 | 25 #if __GNUC__ >= 4 |
| 13 #define PP_EXPORT __attribute__ ((visibility("default"))) | 26 #define PP_EXPORT __attribute__ ((visibility("default"))) |
| 14 #elif defined(_MSC_VER) | 27 #elif defined(_MSC_VER) |
| 15 #define PP_EXPORT __declspec(dllexport) | 28 #define PP_EXPORT __declspec(dllexport) |
| 16 #endif | 29 #endif |
| 17 | 30 |
| 18 /** | |
| 19 * @file | |
| 20 * This file defines three functions that your module must | |
| 21 * implement to interact with the browser. | |
| 22 */ | |
| 23 | |
| 24 // {PENDING: undefine PP_EXPORT?} | 31 // {PENDING: undefine PP_EXPORT?} |
| 25 | 32 |
| 26 | |
| 27 /* We don't want name mangling for these external functions. We only need | 33 /* We don't want name mangling for these external functions. We only need |
| 28 * 'extern "C"' if we're compiling with a C++ compiler. | 34 * 'extern "C"' if we're compiling with a C++ compiler. |
| 29 */ | 35 */ |
| 30 #ifdef __cplusplus | 36 #ifdef __cplusplus |
| 31 extern "C" { | 37 extern "C" { |
| 32 #endif | 38 #endif |
| 33 | 39 |
| 34 /** | 40 /** |
| 35 * @addtogroup Functions | 41 * @addtogroup Functions |
| 36 * @{ | 42 * @{ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 PP_EXPORT const void* PPP_GetInterface(const char* interface_name); | 107 PP_EXPORT const void* PPP_GetInterface(const char* interface_name); |
| 102 /** | 108 /** |
| 103 * @} | 109 * @} |
| 104 */ | 110 */ |
| 105 | 111 |
| 106 #ifdef __cplusplus | 112 #ifdef __cplusplus |
| 107 } /* extern "C" */ | 113 } /* extern "C" */ |
| 108 #endif | 114 #endif |
| 109 | 115 |
| 110 #endif /* PPAPI_C_PPP_H_ */ | 116 #endif /* PPAPI_C_PPP_H_ */ |
| 117 |
| OLD | NEW |