home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / ncftp / ncftp-1.9.5.tar.gz / ncftp-1.9.5.tar / ncftp-1.9.5 / ftprc.h < prev    next >
C/C++ Source or Header  |  1995-10-01  |  931b  |  40 lines

  1. /* ftprc.h */
  2.  
  3. #ifndef _ftprc_h_
  4. #define _ftprc_h_
  5.  
  6. /*  $RCSfile: ftprc.h,v $
  7.  *  $Revision: 14020.11 $
  8.  *  $Date: 93/05/21 05:45:31 $
  9.  */
  10.  
  11. #define NETRC "netrc"
  12. #define FTPRC "ncftprc"
  13.  
  14. #define RC_DELIM " \n\t,"
  15.  
  16. typedef struct site *siteptr;
  17. typedef struct site {
  18.     char *name;            /* name (or IP address) of site */
  19.     siteptr next;
  20. } site;
  21.  
  22. typedef struct recentsite {
  23.     char *name;            /* name (or IP address) of site */
  24.     char *dir;            /* directory we were in last time we called. */
  25.     time_t lastcall;    /* when this site was called last. */
  26. } recentsite;
  27.  
  28. int thrash_rc(void);
  29. void AddNewSitePtr(char *word);
  30. int ruserpass2(char *host, char **user, char **pass, char **acct);
  31. void GetFullSiteName(char *host, char *lastdir);
  32. void ReadRecentSitesFile(void);
  33. int  WriteRecentSitesFile(void);
  34. void AddRecentSite(char *host, char *lastdir);
  35. void UpdateRecentSitesList(char *host, char *lastdir);
  36. void PrintSiteList(void);
  37.  
  38. #endif
  39. /* eof */
  40.