home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / msgapi38.zip / INCLUDE / API_SQD.H < prev    next >
C/C++ Source or Header  |  1991-11-16  |  4KB  |  77 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 by Scott J. Dudley.  All rights reserved.          *
  5.  *                                                                         *
  6.  *  Structure definitions of the SQD header                                *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in           *
  10.  *  README.1ST.                                                            *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MSGAPI LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS       *
  14.  *  AGREEMENT IN ANY OF THE AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE    *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MSGAPI LICENSING         *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        Internet f106.n249.z1.fidonet.org               *
  25.  *  Kingston, Ont.         BBS      (613) 389-8315   HST/14.4k, 24hrs      *
  26.  *  Canada - K7M 5N3                                                       *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. /* $Id: api_sqd.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  31.  
  32. struct _sqdata
  33. {
  34.  
  35.   int sfd;                /* SquishFile handle */
  36.   int ifd;                /* SquishIndex handle */
  37.  
  38.   byte base[80];          /* Base name for SquishFile */
  39.  
  40.   FOFS begin_frame;       /* Offset of first frame in file */
  41.   FOFS last_frame;        /* Offset to last frame in file */
  42.   FOFS free_frame;        /* Offset of first FREE frame in file */
  43.   FOFS last_free_frame;   /* Offset of LAST free frame in file */
  44.   FOFS end_frame;         /* Pointer to end of file */
  45.  
  46.   FOFS next_frame;
  47.   FOFS prev_frame;
  48.   FOFS cur_frame;
  49.  
  50.   dword uid;
  51.   dword max_msg;
  52.   dword skip_msg;
  53. /*dword zero_ofs;*/
  54.   word keep_days;
  55.   
  56.   byte flag;
  57.   byte rsvd1;
  58.   
  59.   word sz_sqhdr;
  60.   byte rsvd2;
  61.  
  62.   word len;              /* Old length of sqb structure                     */
  63.  
  64.   dword idxbuf_size;     /* Size of the allocated buffer                    */
  65.   dword idxbuf_used;     /* # of bytes being used to hold messages          */
  66.   dword idxbuf_write;    /* # of bytes we should write to index file        */
  67.   dword idxbuf_delta;    /* Starting position from which the index has chhg */
  68.   
  69.   struct _sqbase delta; /* Copy of last-read sqbase, to determine changes   */
  70.   word msgs_open;
  71.   
  72.   SQIDX far *idxbuf;
  73. };
  74.  
  75.  
  76.  
  77.