home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / plgsk401.sit / PluginSDK 4.01a / Examples / CharFlipper / Source / CharFlipperFactory.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-09  |  826 b   |  31 lines

  1. //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. //
  3. // PluginFactoryStubs.cpp
  4. //
  5. // These functions create, initialize, and shutdown a plugin. Remove this file and implement
  6. // these functions yourself in order to make sure that the correct subclass of CNetscapePlugin
  7. // gets used.
  8. //
  9. //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  10.  
  11. #ifndef _NPAPI_H_
  12. #include "npapi.h"
  13. #endif
  14.  
  15. #include "CCharFlipper.h"
  16.  
  17. CNetscapePlugin* CreateNetscapePlugin( NPP instance, uint16 mode, CPluginArguments* adoptedArgs, NPSavedData* saved )
  18. {
  19.     return new CCharFlipper( instance, mode, adoptedArgs );
  20. }
  21.  
  22. NPError InitializeNetscapePlugin( void )
  23. {
  24.     return CCharFlipper::Initialize();
  25. }
  26.  
  27. void ShutdownNetscapePlugin( void )
  28. {
  29.     CCharFlipper::Shutdown();
  30. }
  31.