home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / plugin / nppg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  65 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. /*
  20.  *  nppg.h $Revision: 3.1 $
  21.  *  Prototypes for functions exported by the FEs and called by libplugin.
  22.  *  Some (perhaps all) of these prototypes could be moved to fe_proto.h.
  23.  *  Protypes for functions exported by libplugin are in np.h.
  24.  */
  25.  
  26. #ifndef _NPPG_H
  27. #define _NPPG_H
  28.  
  29. #include "npapi.h"
  30. #include "npupp.h"
  31. struct _np_handle;
  32.  
  33. XP_BEGIN_PROTOS
  34.  
  35. extern void             FE_RegisterPlugins(void);
  36. extern NPPluginFuncs*    FE_LoadPlugin(void *plugin, NPNetscapeFuncs *, struct _np_handle* handle);
  37. extern void                FE_UnloadPlugin(void *plugin, struct _np_handle* handle);
  38. extern void                FE_EmbedURLExit(URL_Struct *urls, int status, MWContext *cx);
  39. extern void                FE_ShowScrollBars(MWContext *context, XP_Bool show);
  40. #if defined (XP_WIN) || defined(XP_OS2)
  41. extern void             FE_FreeEmbedSessionData(MWContext *context, NPEmbeddedApp* pApp);
  42. #endif
  43.  
  44. #ifdef XP_MAC
  45. extern void             FE_PluginProgress(MWContext *context, const char *message);
  46. extern void             FE_ResetRefreshURLTimer(MWContext *context);
  47. extern void                FE_RegisterWindow(void* plugin, void* window);
  48. extern void                FE_UnregisterWindow(void* plugin, void* window);
  49. #endif
  50.  
  51. #ifdef XP_UNIX
  52. extern NPError            FE_PluginGetValue(void *pdesc, NPNVariable variable, void *r_value);
  53. #else
  54. extern NPError                  FE_PluginGetValue(MWContext *context, NPEmbeddedApp *app, NPNVariable variable, void *r_value);
  55. #endif /* XP_UNIX */
  56.  
  57. #ifdef XP_WIN32
  58. void*    WFE_BeginSetModuleState();
  59. void    WFE_EndSetModuleState(void*);
  60. #endif
  61.  
  62. XP_END_PROTOS
  63.  
  64. #endif /* _NPPG_H */
  65.