home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / WWIV2.ZIP / SUBXTR.H < prev    next >
C/C++ Source or Header  |  1992-12-03  |  2KB  |  72 lines

  1. /*****************************************************************************
  2.  
  3.                 WWIV Version 4
  4.                     Copyright (C) 1988-1993 by Wayne Bell
  5.  
  6. Distribution of the source code for WWIV, in any form, modified or unmodified,
  7. without PRIOR, WRITTEN APPROVAL by the author, is expressly prohibited.
  8. Distribution of compiled versions of WWIV is limited to copies compiled BY
  9. THE AUTHOR.  Distribution of any copies of WWIV not compiled by the author
  10. is expressly prohibited.
  11.  
  12.  
  13. *****************************************************************************/
  14.  
  15.  
  16. #ifndef _SUBSXTR_H_
  17. #define _SUBSXTR_H_
  18.  
  19.  
  20. /*
  21.  * Info for each network the sub is on.
  22.  *  flags - bitmask
  23.  *  net_num - index into networks.dat
  24.  *  type - numeric sub type = atoi(stype)
  25.  *  host - host system of sub, or 0 if locally hosted
  26.  *  stype - string sub type (up to 7 chars)
  27.  */
  28. typedef struct {
  29.   long flags;
  30.   short net_num;
  31.   unsigned short type;
  32.   short host;
  33.   short category;
  34.   char stype[8];
  35. } xtrasubsnetrec;
  36.  
  37. #define XTRA_NET_AUTO_ADDDROP 0x00000001    /* can auto add-drop the sub */
  38. #define XTRA_NET_AUTO_INFO    0x00000002    /* sends subs.lst info for sub */
  39.  
  40.  
  41. /*
  42.  * Extended info for each sub, relating to network.
  43.  *  flags - bitmask
  44.  *  desc - long description, for auto subs.lst info
  45.  *  num_nets - # records in "nets" field
  46.  *  nets - pointer to network info for sub
  47.  */
  48. typedef struct {
  49.   long flags;
  50.   char desc[61];
  51.   short num_nets;
  52.   short num_nets_max;
  53.   xtrasubsnetrec *nets;
  54. } xtrasubsrec;
  55.  
  56. #define XTRA_MALLOCED         0x80000000    /* "nets" is malloced */
  57.  
  58. #define XTRA_MASK             (~(XTRA_MALLOCED))
  59.  
  60.  
  61. #ifdef _DEFINE_GLOBALS_
  62.  
  63. xtrasubsrec *xsubs;
  64.  
  65. #else
  66. #endif
  67.  
  68. extern xtrasubsrec *xsubs;
  69.  
  70. #endif
  71.  
  72.