home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BTMTSRC3.ZIP / SCHED.H < prev    next >
Text File  |  1990-05-14  |  8KB  |  129 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-90, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*               Scheduler definitions used in BinkleyTerm                  */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*    For complete  details  of the licensing restrictions, please refer    */
  17. /*    to the License  agreement,  which  is published in its entirety in    */
  18. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.240.    */
  19. /*                                                                          */
  20. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  21. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  22. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  23. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  24. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  25. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  26. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  27. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  28. /*                                                                          */
  29. /*                                                                          */
  30. /* You can contact Bit Bucket Software Co. at any one of the following      */
  31. /* addresses:                                                               */
  32. /*                                                                          */
  33. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:132/491, 1:141/491  */
  34. /* P.O. Box 460398                AlterNet 7:491/0                          */
  35. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  36. /*                                Internet f491.n132.z1.fidonet.org         */
  37. /*                                                                          */
  38. /* Please feel free to contact us at any time to share your comments about  */
  39. /* our software and/or licensing policies.                                  */
  40. /*                                                                          */
  41. /*--------------------------------------------------------------------------*/
  42.  
  43.  
  44. /* Definitions for day of the week */
  45. #define DAY_SUNDAY      0x01
  46. #define DAY_MONDAY      0x02
  47. #define DAY_TUESDAY     0x04
  48. #define DAY_WEDNESDAY   0x08
  49. #define DAY_THURSDAY    0x10
  50. #define DAY_FRIDAY      0x20
  51. #define DAY_SATURDAY    0x40
  52. #define DAY_UNUSED      0x80
  53.  
  54. #define DAY_WEEK  (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
  55. #define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
  56.  
  57. /* Definitions for matrix behavior */
  58. #define MAT_CM          0x0001
  59. #define MAT_DYNAM       0x0002
  60. #define MAT_BBS         0x0004
  61. #define MAT_NOREQ       0x0008
  62. #define MAT_OUTONLY     0x0010
  63. #define MAT_NOOUT       0x0020
  64. #define MAT_FORCED      0x0040
  65. #define MAT_LOCAL       0x0080
  66. #define MAT_SKIP        0x0100
  67. #define MAT_NOMAIL24    0x0200
  68. #define MAT_NOOUTREQ    0x0400
  69. #define MAT_NOCM        0x0800
  70. #define MAT_RESERVED1   0x1000
  71. #define MAT_RESERVED2   0x2000
  72. #define MAT_RESERVED3   0x4000
  73. #define MAT_RESERVED4   0x8000
  74.  
  75. /*********************************************************************
  76. * If either of these structures are changed, don't forget to change  *
  77. * the BinkSched string in sched.c, as well as the routines that read *
  78. * and write the schedule file (read_sched, write_sched)!!!           *
  79. *********************************************************************/
  80. typedef struct _event
  81. {
  82.    int days;                                     /* Bit field for which days
  83.                                                   * to execute */
  84.    int minute;                                   /* Minutes after midnight to
  85.                                                   * start event */
  86.    int length;                                   /* Number of minutes event
  87.                                                   * runs */
  88.    int errlevel[9];                              /* Errorlevel exits */
  89.    int last_ran;                                 /* Day of month last ran */
  90.    int behavior;                                 /* Behavior mask */
  91.    int wait_time;                                /* Average number of seconds
  92.                                                   * to wait between dials */
  93.    int with_connect;                             /* Number of calls to make
  94.                                                   * with carrier */
  95.    int no_connect;                               /* Number of calls to make
  96.                                                   * without carrier */
  97.    int node_cost;                                /* Maximum cost node to call
  98.                                                   * during this event */
  99.    char cmd[32];                                 /* Chars to append to
  100.                                                   * packer, aftermail and
  101.                                                   * cleanup */
  102.    char month;                                   /* Month when to do it   */
  103.    char day;                                     /* Day of month to do it */
  104.    char err_extent[6][4];                        /* 3 byte extensions for errorlevels 4-9 */
  105.    int extra[1];                                 /* Extra space for later */
  106. } EVENT;
  107.  
  108. typedef struct _history
  109. {
  110.    int which_day;                                /* Day number for this
  111.                                                   * record */
  112.    int bbs_calls;                                /* Number of BBS callers */
  113.    int mail_calls;                               /* Number of mail calls */
  114.    int calls_made;                               /* Number of outgoing calls
  115.                                                   * made */
  116.    int connects;                                 /* Number of outbound call
  117.                                                   * successes */
  118.    int files_in;                                 /* Number of files received */
  119.    int files_out;                                /* Number of files sent */
  120.    int last_caller;                              /* Type of last call */
  121.    int last_zone;                                /* Zone number of last call */
  122.    int last_net;                                 /* Net  number of last call */
  123.    int last_node;                                /* Node number of last call */
  124.    int next_zone;                                /* Zone number of next call */
  125.    int next_net;                                 /* Net  number of next call */
  126.    int next_node;                                /* Node number of next call */
  127.    long callcost;                                /* Cumulative of call costs */
  128. } HISTORY;
  129.