| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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 #ifndef _NPHOSTAPI_H_ | |
| 6 #define _NPHOSTAPI_H_ | |
| 7 | |
| 8 #include "third_party/npapi/bindings/npapi.h" | |
| 9 #include "third_party/npapi/bindings/npapi_extensions.h" | |
| 10 #include "third_party/npapi/bindings/npfunctions.h" | |
| 11 #include "third_party/npapi/bindings/npruntime.h" | |
| 12 | |
| 13 // Define an OS-neutral wrapper for shared library entry points | |
| 14 #if defined(OS_WIN) | |
| 15 #define API_CALL __stdcall | |
| 16 #else | |
| 17 #define API_CALL | |
| 18 #endif | |
| 19 | |
| 20 #ifdef __cplusplus | |
| 21 extern "C" { | |
| 22 #endif | |
| 23 | |
| 24 // | |
| 25 // NPAPI library entry points | |
| 26 // | |
| 27 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
| 28 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs, | |
| 29 NPPluginFuncs* pPFuncs); | |
| 30 #else | |
| 31 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs); | |
| 32 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs); | |
| 33 #endif | |
| 34 typedef NPError (API_CALL * NP_ShutdownFunc)(void); | |
| 35 | |
| 36 #ifdef __cplusplus | |
| 37 } // extern "C" | |
| 38 #endif | |
| 39 | |
| 40 #endif // _NPHOSTAPI_H_ | |
| OLD | NEW |