np_macmain.cpp 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /***********************************************************\
  2. Written by: Richard Bateman (taxilian)
  3. Based on the default np_macmain.cpp from FireBreath
  4. http://firebreath.googlecode.com
  5. This file has been stripped to prevent it from accidentally
  6. doing anything useful.
  7. \***********************************************************/
  8. #include <stdio.h>
  9. typedef void (*NPP_ShutdownProcPtr)(void);
  10. typedef short NPError;
  11. #pragma GCC visibility push(default)
  12. struct NPNetscapeFuncs;
  13. struct NPPluginFuncs;
  14. extern "C" {
  15. NPError NP_Initialize(NPNetscapeFuncs* browserFuncs);
  16. NPError NP_GetEntryPoints(NPPluginFuncs* pluginFuncs);
  17. NPError NP_Shutdown(void);
  18. }
  19. #pragma GCC visibility pop
  20. void initPluginModule()
  21. {
  22. }
  23. NPError NP_GetEntryPoints(NPPluginFuncs* pFuncs)
  24. {
  25. printf("NP_GetEntryPoints()\n");
  26. return 0;
  27. }
  28. NPError NP_Initialize(NPNetscapeFuncs* pFuncs)
  29. {
  30. printf("NP_Initialize()\n");
  31. return 0;
  32. }
  33. NPError NP_Shutdown()
  34. {
  35. return 0;
  36. }