home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / plugin / npwplat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  62 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef _NPWPLAT_H_
  20. #define _NPWPLAT_H_
  21. #include "ntypes.h"
  22. #include "npupp.h"
  23. #include "prlink.h"
  24.  
  25. typedef unsigned long NPWFEPluginType;
  26. typedef struct _NPPMgtBlk NPPMgtBlk;
  27.  
  28. typedef struct _NPPMgtBlk {      // a management block based on plugin type
  29.     NPPMgtBlk*      next;
  30. #if !defined(XP_OS2_)
  31.     LPSTR           pPluginFilename;
  32. #else
  33.     PSZ             pPluginFilename;
  34. #endif
  35. #if !defined(XP_OS2)
  36.     PRLibrary*        pLibrary;        // returned by PR_LoadLibrary
  37. #else
  38.     HMODULE            pLibrary;        // returned by PR_LoadLibrary
  39. #endif
  40.     uint16          uRefCount;       // so we know when to call NP_Initialize
  41.                                     // and NP_Shutdown
  42.     NPPluginFuncs*  pPluginFuncs;   // returned by plugin during load
  43.     char*           szMIMEType;
  44.     char*           szFileExtents;  // a ptr to a string of delimited extents,
  45.                                     // or NULL if empty list.
  46.     char*           szFileOpenName; // a ptr to a string to put in FileOpen
  47.                                     // common dialog type description area
  48.     DWORD           versionMS;      // each word is a digit, eg, 3.1
  49.     DWORD           versionLS;      // each word is a digit, eg, 2.66
  50. } NPPMgtBlk;
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61. #endif // _NPWPLAT_H_
  62.