comparison lib/gftp.h @ 244:afbbc72b73e2

2003-8-3 Brian Masney <masneyb@gftp.org> * lib/local.c (local_put_file) - specify an initial file creation mode of 0644 * lib/misc.c lib/gftp.h - added gftp_parse_file_size(). This function works correctly for files greater than 2.1GB * lib/rfc959.c (rfc959_get_file) lib/protocols.c lib/rfc2068.c lib/rfc959.c - use gftp_parse_file_size() * lib/protocols.c lib/gftp.h (gftp_get_file, gftp_put_file, gftp_transfer_file) - changed type of startsize paramter from size_t to off_t
author masneyb
date Sun, 03 Aug 2003 18:44:29 +0000
parents b42e7233533a
children 41af60bc1f88
comparison
equal deleted inserted replaced
243:b42e7233533a 244:afbbc72b73e2
725 const gchar *first_element, 725 const gchar *first_element,
726 ... ); 726 ... );
727 727
728 #endif 728 #endif
729 729
730 off_t gftp_parse_file_size ( char *str );
731
730 /* protocols.c */ 732 /* protocols.c */
731 #define GFTP_FTP_NUM 0 733 #define GFTP_FTP_NUM 0
732 #define GFTP_HTTP_NUM 1 734 #define GFTP_HTTP_NUM 1
733 #define GFTP_HTTPS_NUM 2 735 #define GFTP_HTTPS_NUM 2
734 #define GFTP_LOCAL_NUM 3 736 #define GFTP_LOCAL_NUM 3
783 void gftp_disconnect ( gftp_request * request ); 785 void gftp_disconnect ( gftp_request * request );
784 786
785 off_t gftp_get_file ( gftp_request * request, 787 off_t gftp_get_file ( gftp_request * request,
786 const char *filename, 788 const char *filename,
787 int fd, 789 int fd,
788 size_t startsize ); 790 off_t startsize );
789 791
790 int gftp_put_file ( gftp_request * request, 792 int gftp_put_file ( gftp_request * request,
791 const char *filename, 793 const char *filename,
792 int fd, 794 int fd,
793 size_t startsize, 795 off_t startsize,
794 size_t totalsize ); 796 off_t totalsize );
795 797
796 long gftp_transfer_file ( gftp_request *fromreq, 798 long gftp_transfer_file ( gftp_request *fromreq,
797 const char *fromfile, 799 const char *fromfile,
798 int fromfd, 800 int fromfd,
799 size_t fromsize, 801 off_t fromsize,
800 gftp_request *toreq, 802 gftp_request *toreq,
801 const char *tofile, 803 const char *tofile,
802 int tofd, 804 int tofd,
803 size_t tosize ); 805 off_t tosize );
804 806
805 ssize_t gftp_get_next_file_chunk ( gftp_request * request, 807 ssize_t gftp_get_next_file_chunk ( gftp_request * request,
806 char *buf, 808 char *buf,
807 size_t size ); 809 size_t size );
808 810