home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / FTPMOUNT.LZX / FTPMount-0.7 / Source / ftpinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-06  |  1023 b   |  45 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. struct info_header {
  9.     struct info_header *next;
  10.     struct info_header **prev;
  11.     
  12.     magic_verify;
  13.     
  14.     b32    unique;
  15.     
  16.     struct    my_info *infos;
  17.     boolean    case_sensitive;
  18.     b8    name[0];
  19. };
  20.  
  21. typedef struct my_info {
  22.     struct     my_info *next;
  23.     
  24.     magic_verify;
  25.     
  26.     b32    size;
  27.     b32    blocks;
  28.     b32    flags;
  29.     struct    DateStamp modified;
  30.     b8    name[0];
  31. } ftpinfo;
  32.  
  33. #define MYFLAG_DIR 0x80000    /* for indicating directories with our normal protection bits */
  34. #define MYFLAG_DELETED 0x40000
  35.  
  36. #define V_ftpinfo    6033
  37. #define V_info_header    9412
  38.  
  39. void add_ftpinfo(struct info_header *ih, b8 *name, struct DateStamp ds, b32 size, b32 blocks, b32 flags);
  40. void free_info_header(struct info_header *ih);
  41. struct info_header *new_info_header(site *sp, b8 *name);
  42. struct info_header *find_info_header(site *sp, b8 *name);
  43. ftpinfo *find_info(struct info_header *ih, b8 *name);
  44.  
  45.