FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
NpapiTypes.h
1 /**********************************************************\
2 Original Author: Richard Bateman (taxilian)
3 
4 Created: Oct 15, 2009
5 License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12 Copyright 2009 Richard Bateman, Firebreath development team
13 \**********************************************************/
14 
15 #pragma once
16 #ifndef H_NPAPITYPES
17 #define H_NPAPITYPES
18 
19 #ifdef FB_WIN
20 #include "win_common.h"
21 #endif
22 #ifdef FB_MACOSX
23 #include <boost/type_traits.hpp>
24 #include <Carbon/Carbon.h>
25 #endif
26 
27 #include "nptypes.h"
28 #include "npfunctions.h"
29 #include "npapi.h"
30 #include "npruntime.h"
31 #include "variant.h"
32 
33 #if !defined(__QUICKDRAWAPI__) && !defined(NP_NO_QUICKDRAW)
34 #define NP_NO_QUICKDRAW
35 #endif
36 
37 namespace FB { namespace Npapi {
38 
39 #ifdef LINUX
40  typedef NPError (*NPInitFuncPtr)(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs);
41  typedef void (*NPShutdownFuncPtr)(void);
42  typedef void* NPGetEntryPointsFuncPtr;
43 #else
44  typedef NPError (*NPInitFuncPtr)(NPNetscapeFuncs *aNPNFuncs);
45  typedef void (*NPShutdownFuncPtr)(void);
46  typedef NPError (*NPGetEntryPointsFuncPtr)(NPPluginFuncs* pFuncs);
47 #endif
48 
49  void copyNPBrowserFuncs(NPNetscapeFuncs *dstFuncs, NPNetscapeFuncs *srcFuncs, NPP instance = NULL);
50 
51  typedef FB::FBNull NpapiNull;
52  typedef FB::FBVoid NpapiVoid;
53 
54 }; };
55 
56 #endif
57