home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 191.lha / ARequester / req.h < prev    next >
C/C++ Source or Header  |  1988-04-28  |  604b  |  36 lines

  1. #ifndef REQ_H
  2. #define REQ_H 1
  3.  
  4. #ifndef INTUITION_INTUITION_H
  5. #include <intuition/intuition.h>
  6. #endif
  7.  
  8. #define FILEREQ_ERROR ((short)-1)
  9. #define CANCEL ((short)2)
  10. #define OKAY ((short)1)
  11. #define NUM_COLORS 4L
  12.  
  13. #define REGS register
  14.  
  15. typedef  void (*PFV)();
  16.  
  17. typedef struct
  18. {
  19. struct Screen *screen;
  20. UBYTE *path;
  21. UBYTE *file;
  22. UBYTE *heading;
  23. UBYTE *buf;
  24. long bufsize;
  25. long n_entries;
  26. UWORD flags;
  27. ULONG user_signals;
  28. PFV user_func;
  29. } FileReq;
  30.  
  31. /* Flag bits */
  32. #define CLI_BIT (1<<0)            /* you set if run from CLI */
  33. #define NATURAL_COLOR_BIT (1<<1)  /* you set if you want natural colors */
  34.  
  35. #endif
  36.