home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / pcmail / part07 / params.h < prev    next >
C/C++ Source or Header  |  1989-02-03  |  1KB  |  59 lines

  1. /*++
  2. /* NAME
  3. /*    params 5
  4. /* SUMMARY
  5. /*    communication parameter definitions
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    library
  10. /* SYNOPSIS
  11. /*    #include "params.h"
  12. /* DESCRIPTION
  13. /* .nf
  14.  
  15. /* /* 
  16. * Identification strings for the external representation of the setup.
  17. * The parameter setup is stored as a file, with one identification string
  18. * and parameter value per line. The identification strings are the same
  19. * ones as used by the mail shell (the Setup option in the initial screen).
  20. */
  21.  
  22. #define    PORT    "communications_port:"
  23. #define    BAUD    "baud_rate:"
  24. #define    HOST    "remote_host_name:"
  25. #define    LOGIN    "login_name:"
  26. #define    DIAL    "dialup_sequence:"
  27. #define    DISC    "disconnect_sequence:"
  28.  
  29. /* /* Table offsets for the internal representation */
  30.  
  31. #define    P_PORT    0
  32. #define    P_BAUD    1
  33. #define    P_HOST  2
  34. #define    P_LOGIN    3
  35. #define    P_DIAL    4
  36. #define    P_DISC    5
  37.  
  38. /* /* Structure of the in-core setup table. */
  39.  
  40. typedef struct {
  41.     char *ident;        /* identification string */
  42.     int length;            /* length of id string */
  43.     char *strval;        /* string value of parameter */
  44. } Info;
  45.  
  46. extern Info *getparams();    /* read setup file */
  47. /* AUTHOR(S)
  48. /*    W.Z. Venema
  49. /*    Eindhoven University of Technology
  50. /*    Department of Mathematics and Computer Science
  51. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  52. /* CREATION DATE
  53. /*    Wed Apr  8 15:39:23 GMT+1:00 1987
  54. /* LAST MODIFICATION
  55. /*    Mon Apr  4 23:47:08 MET 1988
  56. /* VERSION/RELEASE
  57. /*    1.3
  58. /*--*/
  59.