home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / pcomm / part02 / modem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-17  |  1.4 KB  |  40 lines

  1. /*
  2.  * The modem and tty databases.  The first 3 elements make up the tty
  3.  * database, the next 15 make up the modem database.  A "tname" in common
  4.  * with a "mname" link the two together.
  5.  */
  6.  
  7. #define NUM_TTY        10
  8. #define NUM_MODEM    10
  9.  
  10. struct MODEM {
  11.     char     *tty[NUM_TTY];        /* tty names */
  12.     char    *tname[NUM_TTY];    /* modem name */
  13.     int    mbaud[NUM_TTY];        /* maximum baud rate */
  14.  
  15.     char    *mname[NUM_MODEM];    /* modem name (matches tname above) */
  16.     char    *init[NUM_MODEM];    /* initialization */
  17.     char    *dial[NUM_MODEM];    /* dial command */
  18.     char    *suffix[NUM_MODEM];    /* dialing command suffix */
  19.     char    *hangup[NUM_MODEM];    /* hang up the modem */
  20.     char    *con_3[NUM_MODEM];    /* 300 baud connect message */
  21.     char    *con_12[NUM_MODEM];    /* 1200 baud connect message */
  22.     char    *con_24[NUM_MODEM];    /* 2400 baud connect message */
  23.     char    *con_48[NUM_MODEM];    /* 4800 baud connect message */
  24.     char    *con_96[NUM_MODEM];    /* 9600 baud connect message */
  25.     char    *con_192[NUM_MODEM];    /* 19200 baud connect message */
  26.     char    *no_con1[NUM_MODEM];    /* no connect #1 */
  27.     char    *no_con2[NUM_MODEM];    /* no connect #2 */
  28.     char    *no_con3[NUM_MODEM];    /* no connect #3 */
  29.     char    *no_con4[NUM_MODEM];    /* no connect #4 */
  30.  
  31.     int    t_entries;        /* number of tty entries */
  32.     int    m_entries;        /* number of modem entries */
  33.     int    t_cur;            /* current tty entry number */
  34.     int    m_cur;            /* current modem entry number */
  35. };
  36.  
  37. #ifndef MAIN
  38. extern struct MODEM *modem;
  39. #endif /* MAIN */
  40.