home *** CD-ROM | disk | FTP | other *** search
/ synchro.net / synchro.net.tar / synchro.net / main / BBS / ODOORS62.ZIP / ODSwap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-19  |  2.4 KB  |  69 lines

  1. /* OpenDoors Online Software Programming Toolkit
  2.  * (C) Copyright 1991 - 1999 by Brian Pirie.
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17.  *
  18.  *
  19.  *        File: ODSwap.h
  20.  *
  21.  * Description: Provides memory swapping, spawning and certain other low-
  22.  *              level assembly routines needed by OpenDoors. This file is only
  23.  *              applicable when building the MS-DOS version of OpenDoors.
  24.  *
  25.  *   Revisions: Date          Ver   Who  Change
  26.  *              ---------------------------------------------------------------
  27.  *              Nov 25, 1995  6.00  BP   Created.
  28.  *              Feb 19, 1996  6.00  BP   Changed version number to 6.00.
  29.  *              Mar 03, 1996  6.10  BP   Begin version 6.10.
  30.  */
  31.  
  32. #ifndef _INC_ODSWAP
  33. #define _INC_ODSWAP
  34.  
  35. #ifdef ODPLAT_DOS
  36.  
  37. /* Data types. */
  38. typedef struct _vector
  39. {
  40.    char number;                        /* vector number */
  41.    char flag;                          /* 0-CURRENT, 1-IRET, 2-free, 3-end */
  42.    unsigned int vseg;                  /* vector segment */
  43.    unsigned int voff;                  /* vector offset */
  44. } VECTOR;
  45.  
  46. /* Global variables. */
  47. extern char **environ;
  48.  
  49. /* Public functions. */
  50. int _chkems(char *, int *);
  51. int _create(char *, int *);
  52. int _dskspace(int, unsigned int *, unsigned int *);
  53. int _getcd(int, char *);
  54. int _getdrv(void);
  55. int _getems(int, int *);
  56. int _getrc(void);
  57. void _getvect(int, unsigned int *, unsigned int *);
  58. int _restmap(char *);
  59. int _savemap(char *);
  60. void _setdrvcd(int, char * );
  61. void _setvect(VECTOR *);
  62. int _xsize(unsigned int, long *, long *);
  63. int _xspawn(char *, char *, char *, VECTOR *, int, int, char *, int);
  64.  
  65. #endif /* ODPLAT_DOS */
  66.  
  67.  
  68. #endif /* _INC_ODSWAP */
  69.