home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma64.dms / ma64.adf / FTPMount-1.0 / Source / ftpinfo.h < prev    next >
C/C++ Source or Header  |  1995-12-10  |  1KB  |  47 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.     struct  my_info **last_info_p;
  18.  
  19.     boolean    case_sensitive;
  20.     b8    name[0];
  21. };
  22.  
  23. typedef struct my_info {
  24.     struct     my_info *next;
  25.     
  26.     magic_verify;
  27.     
  28.     b32    size;
  29.     b32    blocks;
  30.     b32    flags;
  31.     struct    DateStamp modified;
  32.     b8    name[0];
  33. } ftpinfo;
  34.  
  35. #define MYFLAG_DIR 0x80000    /* for indicating directories with our normal protection bits */
  36. #define MYFLAG_DELETED 0x40000
  37.  
  38. #define V_ftpinfo    6033
  39. #define V_info_header    9412
  40.  
  41. void add_ftpinfo(struct info_header *ih, b8 *name, struct DateStamp ds, b32 size, b32 blocks, b32 flags);
  42. void free_info_header(struct info_header *ih);
  43. struct info_header *new_info_header(site *sp, b8 *name);
  44. struct info_header *find_info_header(site *sp, b8 *name);
  45. ftpinfo *find_info(struct info_header *ih, b8 *name);
  46.  
  47.