home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / disk / misc / TransADF.lha / TransADF / Source / main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-05  |  2.1 KB  |  96 lines

  1. /* main.h - Header file for main.c
  2. ** Copyright (C) 1997,1998 Karl J. Ots
  3. ** 
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program 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
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software
  16. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17. */
  18.  
  19. #ifndef TRANSADF_MAIN_H
  20. #define TRANSADF_MAIN_H
  21.  
  22.  
  23. #ifndef EXEC_TYPES_H
  24. #include <exec/types.h>
  25. #endif /* EXEC_TYPES_H */
  26.  
  27. #ifndef EXEC_IO_H
  28. #include <exec/io.h>
  29. #endif /* EXEC_IO_H */
  30.  
  31. #ifndef DOS_DOS_H
  32. #include <dos/dos.h>
  33. #endif /* DOS_DOS_H */
  34.  
  35. #ifdef COMPILE_RT
  36. #  ifndef EXEC_LIBRARIES_H
  37. #  include <exec/libraries.h>
  38. #  endif /* EXEC_LIBRARIES_H */
  39. extern struct Library *ZBase;
  40. #  include "z_pragmas.h"
  41. #endif /* COMPILE_RT */
  42.  
  43.  
  44. #ifndef TRANSADF_DEVICE_H
  45. #include "device.h"
  46. #endif /* TRANDADF_DEVICE_H */
  47.  
  48. /*---------------------------------*/
  49. /* Global variables and structures */
  50. /*---------------------------------*/
  51.  
  52. /* Constant strings */
  53. extern const char breakText[];
  54.  
  55. /* Standard IO Handles */
  56. extern BPTR StdIn;
  57. extern BPTR StdOut;
  58. extern BPTR StdErr;
  59.  
  60. /* Program name */
  61. extern STRPTR ProgName;
  62.  
  63. /* Device information */
  64. extern struct DeviceInfo *devInfo;
  65.  
  66. /* This will be passed to the read/write routines */
  67. struct ADF_Packet {
  68.   /* Device information */
  69.   struct DeviceInfo *devInfo;
  70.  
  71.   /* device IO */
  72.   struct IOStdReq *diskReq;
  73.   
  74.   /* Amiga Disk File */
  75.   BPTR   ADFile;
  76.   STRPTR ADFileName;
  77.  
  78.   /* Track info */
  79.   ULONG  startTrack;
  80.   ULONG  endTrack;
  81.   
  82.   /* Verification & Formatting */
  83.   BOOL   verify;
  84.   BOOL   format;
  85. };
  86.  
  87.  
  88. /*---------------------*/
  89. /* Function prototypes */
  90. /*---------------------*/
  91.  
  92. void cleanExit (ULONG rc, LONG rc2);
  93.  
  94.  
  95. #endif /* TRANSADF_MAIN_H */
  96.