home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / 52capi.zip / ERROR.API < prev    next >
Text File  |  1993-08-06  |  2KB  |  80 lines

  1. /***
  2. *
  3. *   Error.api
  4. *
  5. *   C language definitions for Clipper Error API
  6. *
  7. *   Copyright (c) 1992-1993, Computer Associates, International
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14.  
  15. #ifndef _ERROR_API
  16.  
  17.  
  18. #ifndef _CLIPDEFS_H
  19. #include "clipdefs.h"
  20. #endif
  21.  
  22.  
  23. typedef void * ERRORP;
  24.  
  25. /*
  26. *   error flag definations
  27. */
  28.  
  29. #define EF_CANRETRY        1
  30. #define EF_CANDEFAULT    4
  31.  
  32. /*
  33. *   error codes (returned from _errLaunch())
  34. */
  35.  
  36. #define E_BREAK            0xffff
  37. #define E_RETRY            1
  38. #define E_DEFAULT            0
  39.  
  40. /*
  41. *   error creation, activation, and destruction
  42. */
  43. extern ERRORP  _errNew     ( void );
  44. extern ERRCODE _errLaunch  ( ERRORP error );
  45. extern void    _errRelease ( ERRORP error );
  46.  
  47.  
  48. /*
  49. *   error "put" functions
  50. */
  51. extern ERRORP  _errPutSeverity   ( ERRORP error, USHORT severity  );
  52. extern ERRORP  _errPutGenCode    ( ERRORP error, USHORT gencode   );
  53. extern ERRORP  _errPutOsCode     ( ERRORP error, USHORT oscode    );
  54. extern ERRORP  _errPutFlags      ( ERRORP error, USHORT flags     );
  55. extern ERRORP  _errPutTries      ( ERRORP error, USHORT tries     );
  56. extern ERRORP  _errPutSubCode    ( ERRORP error, USHORT subcode   );
  57. extern ERRORP  _errPutSubSystem  ( ERRORP error, BYTEP  subsystem );
  58. extern ERRORP  _errPutDescription( ERRORP error, BYTEP  desc      );
  59. extern ERRORP  _errPutOperation  ( ERRORP error, BYTEP  operation );
  60. extern ERRORP  _errPutFileName   ( ERRORP error, BYTEP  filename  );
  61.  
  62.  
  63. /*
  64. *   error "get" functions
  65. */
  66. extern USHORT  _errGetSeverity   ( ERRORP error );
  67. extern USHORT  _errGetGenCode    ( ERRORP error );
  68. extern USHORT  _errGetOsCode     ( ERRORP error );
  69. extern USHORT  _errGetFlags      ( ERRORP error );
  70. extern USHORT  _errGetTries      ( ERRORP error );
  71. extern USHORT  _errGetSubCode    ( ERRORP error );
  72. extern BYTEP   _errGetSubSystem  ( ERRORP error );
  73. extern BYTEP   _errGetDescription( ERRORP error );
  74. extern BYTEP   _errGetOperation  ( ERRORP error );
  75. extern BYTEP   _errGetFileName   ( ERRORP error );
  76.  
  77.  
  78. #define _ERROR_API
  79. #endif
  80.