home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 382.lha / TPTCron / Cron.h < prev    next >
C/C++ Source or Header  |  1990-06-11  |  769b  |  23 lines

  1. /* Definitions and declarations for using _CronEvent.o */
  2.  
  3. extern long CronEvent();
  4.  
  5. /* Command types */
  6.  
  7. #define ADDEVENT    1    /* Add an event */
  8. #define DELEVENT    2    /* Delete an event */
  9. #define LISTEVENTS    3    /* List the dynamic events */
  10. #define CRONEXIT    4    /* Shut down TPTCron */
  11. #define WHENEVENT    5    /* Check the time for an event */
  12. #define READFILE    6    /* Read a CronTab file */
  13. #define TABLIST        7    /* List the CronTab events */
  14.  
  15. /* Codes returned by CronEvent() */
  16.  
  17. #define CNOERR        0L    /* Command was successful */
  18. #define OUTOFMEM    -1L    /* Error allocating memory */
  19. #define BADSYNTAX    -2L    /* Invalid command type */
  20. #define NOCRON        -3L    /* TPTCron is not active */
  21. #define TABNOTFOUND    -4L    /* CronTab file not found */
  22. #define NOEVENTS    -5L    /* There are no events present */
  23.