Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CFBundleTest/np_macmain.cpp
3148 views
1
/***********************************************************\
2
Written by: Richard Bateman (taxilian)
3
4
Based on the default np_macmain.cpp from FireBreath
5
http://firebreath.googlecode.com
6
7
This file has been stripped to prevent it from accidentally
8
doing anything useful.
9
\***********************************************************/
10
11
#include <stdio.h>
12
13
typedef void (*NPP_ShutdownProcPtr)(void);
14
typedef short NPError;
15
16
#pragma GCC visibility push(default)
17
18
struct NPNetscapeFuncs;
19
struct NPPluginFuncs;
20
21
extern "C" {
22
NPError NP_Initialize(NPNetscapeFuncs* browserFuncs);
23
NPError NP_GetEntryPoints(NPPluginFuncs* pluginFuncs);
24
NPError NP_Shutdown(void);
25
}
26
27
#pragma GCC visibility pop
28
29
void initPluginModule()
30
{
31
}
32
33
NPError NP_GetEntryPoints(NPPluginFuncs* pFuncs)
34
{
35
printf("NP_GetEntryPoints()\n");
36
return 0;
37
}
38
39
NPError NP_Initialize(NPNetscapeFuncs* pFuncs)
40
{
41
printf("NP_Initialize()\n");
42
return 0;
43
}
44
45
NPError NP_Shutdown()
46
{
47
return 0;
48
}
49
50