Update V8 to version 4.7.53.
[chromium-blink-merge.git] / third_party / npapi / bindings / nphostapi.h
blobaebf6f14a87ea160fb9a0ab5592dc4ddbfe9f60f
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.
5 #ifndef _NPHOSTAPI_H_
6 #define _NPHOSTAPI_H_
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"
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
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
25 // NPAPI library entry points
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);
36 #ifdef __cplusplus
37 } // extern "C"
38 #endif
40 #endif // _NPHOSTAPI_H_