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

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 by Scott J. Dudley.  All rights reserved.          *
  5.  *                                                                         *
  6.  *  Main *.MSG include file                                                *
  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_sdm.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  31.  
  32. #ifndef __API_SDM_H_DEFINED
  33. #define __API_SFM_H_DEFINED
  34.  
  35.  
  36. #define MAX_SDM_CLEN  512   /* Maximum number of bytes which can be used    *
  37.                              * for kludge lines at top of *.MSG-type        *
  38.                              * messages.                                    */
  39.  
  40.  
  41. struct _msgh
  42. {
  43.   MSG *sq;
  44.   dword id;      /* Must always equal MSGH_ID */
  45.  
  46.   dword bytes_written;
  47.   dword cur_pos;
  48.  
  49.   /* For *.MSG only! */
  50.  
  51.   sdword clen;
  52.   byte *ctrl;
  53.   sdword msg_len;
  54.   sdword msgtxt_start;
  55.   word zplen;
  56.   int fd;
  57. };
  58.  
  59.  
  60. /*************************************************************************/
  61. /* This junk is unique to *.MSG!       NO APPLICATIONS SHOULD USE THESE! */
  62. /*************************************************************************/
  63.  
  64. struct _sdmdata
  65. {
  66.   byte base[80];
  67.   
  68.   unsigned *msgnum;   /* has to be of type 'int' for qksort() fn */
  69.   word msgnum_len;
  70.     
  71.   dword hwm;
  72.   word hwm_chgd;
  73.   
  74.   word msgs_open;
  75. };
  76.  
  77.  
  78.  
  79.  
  80. #endif /* __API_SDM_H_DEFINED */
  81.  
  82. int EXPENTRY WriteZPInfo(XMSG *msg, void (_stdc OS2LOADDS *wfunc)(byte *str), byte *kludges);
  83.  
  84.