home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / TL110.ZIP / TL.H < prev    next >
C/C++ Source or Header  |  1994-10-09  |  2KB  |  55 lines

  1. /*
  2. ** TL.H - Header file for ToneLoc 1.10
  3. */
  4.  
  5. /*
  6.  * The datafiles are a fairly simple structure.  The header (16 bytes)
  7.  * is first, followed by 10000 bytes, one byte for each phone number.
  8.  * The structure of the header is below, "struct _scan".  For the
  9.  * 10,000 phone number bytes, the byte stored represent whether the
  10.  * number has been dialed yet, and the response that we got.
  11.  *
  12.  * Response codes:
  13.  *
  14.  *  (x = number of rings, always 0 - 9)
  15.  *
  16.  *  00 = Undialed
  17.  *  1x = Busy
  18.  *  2x = Voice
  19.  *  3x = No Dialtone
  20.  *  40 = Noted
  21.  *   41 = Fax
  22.  *   42 = Girl
  23.  *   43 = VMB
  24.  *   44 = Yelling Asshole
  25.  *  5x = Aborted
  26.  *  6x = Ringout
  27.  *  7x = Timeout
  28.  *  8x = Tone
  29.  *  9x = Carrier
  30.  * 10x = Excluded
  31.  * 11x = Omitted
  32.  * 12x = Dialed
  33.  * 13x = Blacklisted
  34.  *
  35.  * You'll notice that some of these are unfamiliar to you.  That is
  36.  * because some of them are only for testing purposes.  If there is
  37.  * something else that you think should be stored, let us know.  Also,
  38.  * there are about 10 bytes of extra space in the header, so let us
  39.  * know if there is something else you think should be kept there.
  40.  *
  41.  * We distribute this header file because we want people to know
  42.  * the structure of the datafile, so people can write software for
  43.  * toneloc.  If you have questions, please ask us.
  44.  */
  45.  
  46. typedef unsigned int  word;
  47. typedef unsigned char byte;
  48.  
  49. struct _scan {                   /* header size: 16 bytes   16  */
  50.    char  ProductCode[2];         /* should always be 'TL'    2  */
  51.    word  VersionID;              /* 0x0103 = 1.03            2  */
  52.    word  Minutes;                /* Minutes spent on scan    2  */
  53.    byte  Extra[10];              /* future use              10  */
  54. };
  55.