home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / install / fips / source / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-25  |  1.9 KB  |  71 lines

  1. /*
  2.  
  3.     FIPS - the First nondestructive Interactive Partition Splitting program
  4.  
  5.  
  6.  
  7.     Module disk_io.cpp
  8.  
  9.  
  10.  
  11.     RCS - Header:
  12.  
  13.     $Header: c:/daten/fips/source/main/RCS/global.h 1.4 1995/01/19 00:01:25 schaefer Exp schaefer $
  14.  
  15.  
  16.  
  17.     Copyright (C) 1993 Arno Schaefer
  18.  
  19.  
  20.  
  21.     This program is free software; you can redistribute it and/or modify
  22.  
  23.     it under the terms of the GNU General Public License as published by
  24.  
  25.     the Free Software Foundation; either version 2 of the License, or
  26.  
  27.     (at your option) any later version.
  28.  
  29.  
  30.  
  31.     This program is distributed in the hope that it will be useful,
  32.  
  33.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  34.  
  35.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  36.  
  37.     GNU General Public License for more details.
  38.  
  39.  
  40.  
  41.     You should have received a copy of the GNU General Public License
  42.  
  43.     along with this program; if not, write to the Free Software
  44.  
  45.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.     Report problems and direct all questions to:
  52.  
  53.  
  54.  
  55.     schaefer@rbg.informatik.th-darmstadt.de
  56.  
  57. */
  58.  
  59.  
  60.  
  61. #ifndef GLOBAL_H
  62.  
  63. #define GLOBAL_H
  64.  
  65.  
  66.  
  67. #include <stdio.h>
  68.  
  69.  
  70.  
  71. #include "types.h"
  72.  
  73. #include "hdstruct.h"
  74.  
  75. #include "primpart.h"
  76.  
  77.  
  78.  
  79. struct global_vars
  80.  
  81. {
  82.  
  83.     boolean test_mode;
  84.  
  85.     boolean verbose_mode;
  86.  
  87.     boolean debug_mode;
  88.  
  89.  
  90.  
  91.     int drive_number_cmdline;
  92.  
  93.  
  94.  
  95.     FILE *debugfile;
  96.  
  97.     void open_debugfile (int argc,char *argv[]);
  98.  
  99.  
  100.  
  101.     global_vars (void);
  102.  
  103.     ~global_vars (void);
  104.  
  105. };
  106.  
  107.  
  108.  
  109. extern global_vars global;
  110.  
  111.  
  112.  
  113. void printx (char *fmt,...);
  114.  
  115. int getx (void);
  116.  
  117. void error (char *message,...);
  118.  
  119. void warning (boolean wait_key, char *message,...);
  120.  
  121. void infomsg (char *message,...);
  122.  
  123.  
  124.  
  125. void hexwrite (byte *buffer,int number,FILE *file);
  126.  
  127.  
  128.  
  129. void exit_function (void);
  130.  
  131. void notice (void);
  132.  
  133. void evaluate_argument_vector (int argc,char *argv[]);
  134.  
  135. void save_root_and_boot (harddrive *drive,partition *partition);
  136.  
  137.  
  138.  
  139. #endif
  140.  
  141.