| 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 trusted/ppp_broker.idl modified Sat Jul 16 16:51:03 2011. */ |
| 7 |
| 5 #ifndef PPAPI_C_TRUSTED_PPP_BROKER_H_ | 8 #ifndef PPAPI_C_TRUSTED_PPP_BROKER_H_ |
| 6 #define PPAPI_C_TRUSTED_PPP_BROKER_H_ | 9 #define PPAPI_C_TRUSTED_PPP_BROKER_H_ |
| 7 | 10 |
| 8 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_macros.h" |
| 9 #include "ppapi/c/pp_stdint.h" | |
| 10 | |
| 11 #if __GNUC__ >= 4 | |
| 12 #define PP_EXPORT __attribute__ ((visibility("default"))) | |
| 13 #elif defined(_MSC_VER) | |
| 14 #define PP_EXPORT __declspec(dllexport) | |
| 15 #endif | |
| 16 | 12 |
| 17 /** | 13 /** |
| 18 * @file | 14 * @file |
| 19 * This file defines functions that your module must implement to support a | 15 * This file defines functions that your module must implement to support a |
| 20 * broker. | 16 * broker. |
| 21 */ | 17 */ |
| 22 | 18 |
| 19 |
| 23 // {PENDING: undefine PP_EXPORT?} | 20 // {PENDING: undefine PP_EXPORT?} |
| 24 | 21 |
| 22 #include "ppapi/c/pp_instance.h" |
| 23 #include "ppapi/c/pp_stdint.h" |
| 24 |
| 25 |
| 26 #if __GNUC__ >= 4 |
| 27 |
| 28 #define PP_EXPORT __attribute__ ((visibility("default"))) |
| 29 #elif defined(_MSC_VER) |
| 30 #define PP_EXPORT __declspec(dllexport) |
| 31 #endif |
| 32 |
| 33 |
| 25 | 34 |
| 26 /* We don't want name mangling for these external functions. We only need | 35 /* We don't want name mangling for these external functions. We only need |
| 27 * 'extern "C"' if we're compiling with a C++ compiler. | 36 * 'extern "C"' if we're compiling with a C++ compiler. |
| 28 */ | 37 */ |
| 29 #ifdef __cplusplus | 38 #ifdef __cplusplus |
| 30 extern "C" { | 39 extern "C" { |
| 31 #endif | 40 #endif |
| 32 | 41 |
| 33 /** | 42 /** |
| 34 * @addtogroup Typedefs | 43 * @addtogroup Typedefs |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 PP_EXPORT void PPP_ShutdownBroker(); | 92 PP_EXPORT void PPP_ShutdownBroker(); |
| 84 /** | 93 /** |
| 85 * @} | 94 * @} |
| 86 */ | 95 */ |
| 87 | 96 |
| 88 #ifdef __cplusplus | 97 #ifdef __cplusplus |
| 89 } /* extern "C" */ | 98 } /* extern "C" */ |
| 90 #endif | 99 #endif |
| 91 | 100 |
| 92 #endif /* PPAPI_C_TRUSTED_PPP_BROKER_H_ */ | 101 #endif /* PPAPI_C_TRUSTED_PPP_BROKER_H_ */ |
| 102 |
| OLD | NEW |