home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / plugin / plginerr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  55 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 _PLGINERR_H_
  20. #define _PLGINERR_H_
  21. /* plginerr.h - Defines the error interface between the Nav and its plugin */
  22.  
  23. #if !defined(XP_OS2) && !defined(OS2)
  24. #include <windows.h>
  25. #endif
  26.  
  27. #include "npapi.h"
  28.  
  29. /* error handling */
  30. #define NPERR_BASE                      0
  31. #define NPERR_NO_ERROR                  (NPERR_BASE + 0)
  32. #define NPERR_GENERIC_ERROR             (NPERR_BASE + 1)
  33. #define NPERR_INVALID_INSTANCE_ERROR    (NPERR_BASE + 2)
  34. #define NPERR_INVALID_FUNCTABLE_ERROR   (NPERR_BASE + 3)
  35. #define NPERR_MODULE_LOAD_FAILED_ERROR  (NPERR_BASE + 4)
  36. #define NPERR_OUT_OF_MEMORY_ERROR       (NPERR_BASE + 5)
  37. #define NPERR_INVALID_PLUGIN_ERROR      (NPERR_BASE + 6)
  38. #define NPERR_INVALID_PLUGIN_DIR_ERROR  (NPERR_BASE + 7)
  39.  
  40. /* option handling */
  41. #define NPOPT_NO_OPTION             0
  42. #define NPOPT_CAN_SEEK              (1 << 1)
  43.  
  44. typedef unsigned long NPOption; /* consts def'd as bit positions */
  45.  
  46. /* reason handling */
  47. #define NPRES_BASE                  0
  48. #define NPRES_NETWORK_ERR           (NPRES_BASE + 0)
  49. #define NPRES_USER_BREAK            (NPRES_BASE + 1)
  50. #define NPRES_DONE                  (NPRES_BASE + 3)
  51.  
  52.  
  53. #endif // _PLGINERR_H_
  54.  
  55.