Mercurial > gftp.yaz
diff lib/gftp.h @ 787:3751478bb260
2006-7-27 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (gftp_get_all_subdirs) - split this function into
several smaller functions. Added support for getting the true file
size if it is a symlink. Added more error handling. Fixed a segfault
that may occur when transferring deeply nested directories
* lib/fsp.c lib/gftp.h lib/local.c lib/protocols.c lib/rfc2068.c
lib/rfc959.c lib/sshv2.c (*_chdir) - removed support for passing
the request->directory into this function. There is no longer a
need for this. (*_stat_filename) - added support for getting the
file size
author | masneyb |
---|---|
date | Fri, 28 Jul 2006 01:44:54 +0000 |
parents | d553d14a2565 |
children | 37bc51131e2d |
line wrap: on
line diff
--- a/lib/gftp.h Thu Jul 27 18:25:38 2006 +0000 +++ b/lib/gftp.h Fri Jul 28 01:44:54 2006 +0000 @@ -254,7 +254,9 @@ done_edit : 1, /* Edit the file when done transfering? */ done_rm : 1, /* Remove the file when done */ transfer_done : 1, /* Is current file transfer done? */ - is_fd : 1; /* Is this a file descriptor? */ + is_fd : 1, /* Is this a file descriptor? */ + exists_other_side; /* The file exists on the other side during + the file transfer */ char transfer_action; /* See the GFTP_TRANS_ACTION_* vars above */ /*@null@*/ void *user_data; }; @@ -452,7 +454,8 @@ int (*abort_transfer) ( gftp_request * request ); int (*stat_filename) ( gftp_request * request, const char *filename, - mode_t * mode ); + mode_t * mode, + off_t * filesize ); int (*list_files) ( gftp_request * request ); int (*get_next_file) ( gftp_request * request, gftp_file *fle, @@ -927,7 +930,8 @@ int gftp_stat_filename ( gftp_request * request, const char *filename, - mode_t * mode ); + mode_t * mode, + off_t * filesize ); void gftp_set_hostname ( gftp_request * request, const char *hostname );