home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a523 / 31.ddi / USRXIT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-13  |  2.5 KB  |  88 lines

  1. /* copyright (c) 1984 by the Oracle Corporation */
  2.  
  3. /*
  4. NAME
  5.   Definitions for IAP User Exits.
  6. FUNCTION
  7.   Should be included in GENXTB.C and IAPPRS.C.
  8. NOTES
  9.   See IAPPRS.C {Parse/Call IAP User Exit};
  10.   and GENXTB.C {Generate iapxtb[] table}.
  11. OWNER
  12.   Friend
  13. DATE
  14.   11/15/84
  15. MODIFIED
  16.     Markari    12/09/89 - Changes to allow forms and report writer to link together
  17.     Markari    05/26/89 - Fold in Unix porting changes
  18.     Fine       01/25/89 - TOUCH
  19.     Rolle      01/14/88 - more XIT types; remove obsolete stuff
  20.     Fine       12/30/87 - Fix preprocessor text
  21.     Morse      09/09/87 - Add Ada exit call
  22. */
  23.  
  24.  
  25. #ifndef extd
  26.  
  27. #ifdef vax11c
  28. /* Defines for extd, extf, externdef */
  29. # define  extd          globalref          /* use for DECLARING global data */
  30. # define  externdef   globaldef          /* use for DEFINING  global data */
  31. # define  extf          extern               /* use for declaring FUNCTIONS */
  32. # define  VOID          void
  33. #else
  34. # define  extd          extern             /* use for DECLARING global data */
  35. # define  externdef                 /* use for DEFINING  global data */
  36. # define  extf          extern               /* use for declaring FUNCTIONS */
  37. #endif
  38.  
  39. #ifdef unix
  40. # define  VOID          void
  41. #endif
  42.  
  43. #ifndef VOID
  44. #define VOID int
  45. #endif /* VOID */
  46.  
  47. #endif
  48. #define SQLFORMS          1
  49. #define SQLREPORTWRITER   2
  50.  
  51. extd int  iapprd;                       /* Product currently running */
  52.  
  53. extd char iaprval[];                 /* This is where IAP returns
  54.                         field values from PUT */
  55.  
  56. struct    exitr                /* Struct definition for exits */
  57. {
  58.      char      *exnam;        /* Name of the user exit */
  59.      int       (*exfp)();        /* Pointer to the exit routine */
  60.      int       extyp;        /* Type code for exit routine  */
  61. #define  XITCC1    1            /* C (for existing exits)      */
  62. #define  XITCC       2            /* C (call-by-reference)       */
  63. #define  XITCOB    3            /* Cobol               */
  64. #define  XITFOR    4            /* Fortran              */
  65. #define  XITPLI    5                    /* PL/I                             */
  66. #define  XITPAS    6                    /* Pascal                           */
  67. #define  XITAda    7                    /* Ada                              */
  68. };
  69.  
  70. typedef struct exitr exitr;
  71.  
  72. /* Failure and Success return codes */
  73.  
  74. #ifdef FATAL_ERR
  75. #undef FATAL_ERR
  76. #endif
  77. #define    FATAL_ERR        535    /* Use this on really bad errors */
  78.  
  79. #ifdef FAILURE
  80. #undef FAILURE
  81. #endif
  82. #define    FAILURE        1403   /* Use this on recoverable error */
  83.  
  84. #ifdef SUCCESS
  85. #undef SUCCESS
  86. #endif
  87. #define    SUCCESS        0      /* Use for success */
  88.