home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / h / list_rchan.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  1.3 KB  |  53 lines

  1. /* list_rchan.h: a definition of a Reformatter Channel List struct */
  2.  
  3. /*
  4.  * @(#) $Header: /xtel/pp/pp-beta/h/RCS/list_rchan.h,v 6.0 1991/12/18 20:42:44 jpo Rel $
  5.  *
  6.  * $Log: list_rchan.h,v $
  7.  * Revision 6.0  1991/12/18  20:42:44  jpo
  8.  * Release 6.0
  9.  *
  10.  *
  11.  */
  12.  
  13.  
  14.  
  15. #ifndef _H_LIST_RCHAN
  16. #define _H_LIST_RCHAN
  17.  
  18. #include "chan.h"
  19. #include "auth.h"
  20.  
  21. /*
  22. li_mta  - is the remote site/mta e.g "stl.stc.co.uk" or "DLCMHS" etc
  23. li_chan - is the channel pointer for that site e.g "PSS" "x400out84" etc
  24.  
  25.  
  26. Note:
  27.     That though this list structure is used both for the reformatting
  28.     and the outgoing channels, Only the outgoing channels have the
  29.     li_name array set.
  30. */
  31.  
  32. typedef struct list_rchan {
  33.     char                    *li_mta; /* the MTA */
  34.     CHAN                    *li_chan; /* the channel its on */
  35.     union {
  36.         AUTH            *li_un_auth; /* auth stuff used in submit */
  37.         char        *li_un_dir; /* the directory associated */
  38.     } list_rchan_un;
  39.     struct list_rchan       *li_next; /* next in the chain */
  40. } LIST_RCHAN;
  41. #define li_auth list_rchan_un.li_un_auth
  42. #define li_dir list_rchan_un.li_un_dir
  43.  
  44. #define NULLIST_RCHAN           ((LIST_RCHAN *)0)
  45.  
  46. extern  LIST_RCHAN              *list_rchan_new();
  47. extern  LIST_RCHAN              *list_rchan_malloc();
  48. extern    void            list_rchan_free ();
  49. extern    int            list_rchan_ssite ();
  50. extern    int            list_rchan_schan ();
  51. extern    void            list_rchan_add ();
  52. #endif
  53.