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 "base/port.h" 9 #include "third_party/npapi/bindings/npapi.h" 10 #include "third_party/npapi/bindings/npapi_extensions.h" 11 #include "third_party/npapi/bindings/npfunctions.h" 12 #include "third_party/npapi/bindings/npruntime.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 // 19 // NPAPI library entry points 20 // 21 #if defined(OS_POSIX) && !defined(OS_MACOSX) 22 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs, 23 NPPluginFuncs* pPFuncs); 24 #else 25 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs); 26 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs); 27 #endif 28 typedef NPError (API_CALL * NP_ShutdownFunc)(void); 29 30 #ifdef __cplusplus 31 } // extern "C" 32 #endif 33 34 #endif // _NPHOSTAPI_H_ 35