home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 469.lha / DFC_v5.0 / dfc5.h < prev    next >
C/C++ Source or Header  |  1991-02-09  |  1KB  |  64 lines

  1. #include "AllIncludes.c"
  2.  
  3. #define TRACKSIZE (2*512*11)
  4. #define STACKSIZE 2048
  5.  
  6. /*
  7. *
  8. * Internal messages use this structure.
  9. *
  10. */
  11.  
  12. struct IMsg {
  13.     struct Message im_Message;
  14.     short im_Action;    /* what to do */
  15.     char im_ID;            /* the task ID */
  16.     char im_RC;            /* the return code */
  17.     long im_n;            /* a general purpose number */
  18.     void *im_p;            /* a general purpose pointer */
  19. };
  20.  
  21. /*
  22. *
  23. * Action allowable between the main process and the disk processes
  24. *
  25. */
  26.  
  27. #define READ_TRACK 0
  28. #define WRITE_TRACK 1
  29. #define WRITE_AND_VERIFY_TRACK 2
  30. #define INIT 3
  31. #define STOP_MOTOR 4
  32. #define EXIT 5
  33. #define READ_ERROR 6
  34. #define WRITE_ERROR 7
  35. #define VERIFY_ERROR 8
  36. #define NO_DISK 9
  37. #define NOT_DOS 10
  38. #define GENERIC_ERROR 11
  39. #define WRITE_PROTECTED 12
  40.  
  41. /*
  42. * This macros read & write the bit masks such as ActualDest
  43. */
  44.  
  45. #define DEST(x) (1<<(x))
  46. #define INDEST(x) ((DEST(x)) & Dest)
  47. #define INACTUALDEST(x) ((DEST(x)) & ActualDest)
  48.  
  49. enum Gadgets { DF0S, DF1S, DF2S, DF3S, DF0D, DF1D, DF2D, DF3D, VERIFY, BUFFER, TALK, FFS, DATE, STOP, GO, REPEAT, FORMAT, AUTO };
  50.  
  51. __asm fcpy(register __a0 void *source, register __a1 void *dest);
  52. __asm fcmp(register __a0 void *source, register __a1 void *dest);
  53.  
  54. /*
  55. * We link sprinf from amiga.lib, and *NOT* from the C library.
  56. */
  57.  
  58. extern int __stdargs sprintf(char *, char *,...);
  59.  
  60. #include "Protos.h"
  61.  
  62. extern struct IntuitionBase *IntuitionBase;
  63. extern struct GfxBase *GfxBase;
  64.