home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma64.dms / ma64.adf / FTPMount-1.0 / Source / ftp.h < prev    next >
Text File  |  1995-09-06  |  1KB  |  52 lines

  1. /*
  2.  * This source file is Copyright 1995 by Evan Scott.
  3.  * All rights reserved.
  4.  * Permission is granted to distribute this file provided no
  5.  * fees beyond distribution costs are levied.
  6.  */
  7.  
  8. #define V_DosList 17519
  9. #define V_StandardPacket 21364
  10.  
  11. #define V_bstr 25203
  12. #define V_cstr 25458
  13.  
  14. #define V_lock 27759
  15.  
  16. typedef struct my_lock {
  17.     struct FileLock fl;
  18.     
  19.     magic_verify;
  20.     
  21.     struct my_lock *next;
  22.     struct MsgPort *port;
  23.     b32 rfsl, lastkey;
  24.     b8 fname[0];
  25. } lock;
  26.  
  27. #define V_file_info 26217
  28.  
  29. #define FIRST_BLOCK_SIZE 512
  30. #define MAX_READ_SIZE 2048
  31.  
  32. typedef struct my_file_info {
  33.     magic_verify;
  34.     
  35.     struct my_file_info *next;
  36.  
  37.     b32 rfarg;    /* real file arg */
  38.     b32 rpos, vpos, end;    /* real file position, virtual file position, file end */
  39.     struct MsgPort *port;
  40.     struct tcpm *tm;
  41.     b16 type;
  42.     boolean seek_end, eof, closed;
  43.     b8 first_block[FIRST_BLOCK_SIZE];
  44.     b8 fname[0];
  45. } file_info;
  46.  
  47. /* special internal packets */
  48.  
  49. #define action_IDLE 2050
  50. #define action_IDLE_DEATH 2051
  51. #define action_SUSPEND 2052
  52.