home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / clalerts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.8 KB  |  80 lines

  1. #ifndef _CL_ALERTS_H
  2. #define _CL_ALERTS_H 1
  3.  
  4. #ifndef EXEC_ALERTS_H
  5. #include <exec/alerts.h>
  6. #endif
  7.  
  8. /*********************************************************************
  9. *
  10. *  Alert Codes of various Connectline Subsystems
  11. *
  12. *  Format of the alert error number:
  13. *
  14. *    +-+-------------+----------------+--------------------------------+
  15. *    |D|0110101 ($35)|  Subsystem ID  |    SubSystem Specific Error    |
  16. *    +-+-------------+----------------+--------------------------------+
  17. *     1    7 bits          8 bits                  16 bits
  18. *
  19. *                        D:  DeadEnd alert flag (Not used!)
  20. *                  $35:  AN_Unknown (Application Alert)
  21. *         Subsystem ID:  which Connectline subsystem
  22. *       Specific Error:  subsystem specific error code
  23. *
  24. *
  25. *   Use clutil.library/CLU_Alert() to output alert codes. This
  26. *   will generate a file report in "CONNECTLINE:alert.log"
  27. *
  28. **********************************************************************/
  29.  
  30. #define CLALERT_BASE AN_Unknown
  31. #define CLALERT_MAKE_ID(subsys,specific) (CLALERT_BASE|((subsys)<<16)|(specific))
  32.  
  33. #define CLALERT_NOCLUTIL (AN_Unknown|AG_OpenLib)
  34.  
  35. /*
  36.  *  Subsystem defines and specific error codes
  37.  */
  38.  
  39. #define CLALERT_SUBSYS_CLUTIL 1
  40.  
  41. /*
  42.  *  clutil.library specific error codes
  43.  *
  44.  *  0 - illegal InsertMode passed to CLU_NOL_AddEntry()
  45.  *  1 - NULL NOL pointer encountered
  46.  *  2 - NULL NOBJ pointer encountered
  47.  *  3 - NOBJs are on different NOLS at CLU_NOL_SwapEntries()
  48.  *
  49.  */
  50.  
  51.  
  52. #define CLALERT_SUBSYS_CL_PREFS 2
  53.  
  54. /*
  55.  *  cl_prefs.library specific error codes
  56.  *
  57.  *  0 - illegal MsgPort passed to CLP_AddNotify()
  58.  *
  59.  */
  60.  
  61. #define CLALERT_SUBSYS_CL_ROUTE 3
  62.  
  63. /*
  64.  *  cl_route.library specific error codes
  65.  *
  66.  *  0 - dead function CalcRouteFee has been called
  67.  *
  68.  */
  69.  
  70. #define CLALERT_SUBSYS_CLSYSTEM 4
  71.  
  72. /*
  73.  *  clsystem.library specific error codes
  74.  *
  75.  *  0 - no memory for System list
  76.  *
  77.  */
  78.  
  79. #endif
  80.