]> sjero.net Git - wget/blobdiff - src/ftp.h
[svn] Added support for cookies.
[wget] / src / ftp.h
index 0fa0a164c15ea5ea725169f6f3fb60036a8aacfd..9a516d4b2b2600bf2143804028aff31316ced2d5 100644 (file)
--- a/src/ftp.h
+++ b/src/ftp.h
@@ -27,6 +27,7 @@ enum stype
   ST_UNIX,
   ST_VMS,
   ST_WINNT,
+  ST_MACOS,
   ST_OTHER
 };
   
@@ -74,16 +75,18 @@ struct fileinfo
 };
 
 /* Commands for FTP functions.  */
-enum command
+enum wget_ftp_command
 {
   DO_LOGIN      = 0x0001,      /* Connect and login to the server.  */
   DO_CWD        = 0x0002,      /* Change current directory.  */
   DO_RETR       = 0x0004,      /* Retrieve the file.  */
   DO_LIST       = 0x0008,      /* Retrieve the directory list.  */
-  LEAVE_PENDING = 0x0010       /* Do not close the socket.  */
+  LEAVE_PENDING = 0x0010,      /* Do not close the socket.  */
+  NO_TRUNCATE  = 0x0020        /* Don't truncate the file if REST
+                                  malfunctions. */
 };
 
-enum fstatus
+enum wget_ftp_fstatus
 {
   NOTHING       = 0x0000,      /* Nothing done yet.  */
   ON_YOUR_OWN   = 0x0001,      /* The ftp_loop_internal sets the
@@ -98,6 +101,8 @@ typedef struct
   int cmd;                     /* command code */
   struct rbuf rbuf;            /* control connection buffer */
   long dltime;                 /* time of the download */
+  enum stype rs;               /* remote system reported by ftp server */ 
+  char *id;                    /* initial directory */
 } ccon;
 
 struct fileinfo *ftp_parse_ls PARAMS ((const char *, enum stype));