Mercurial > gftp.yaz
comparison src/uicommon/gftpui.h @ 377:14da115b149b
2003-1-23 Brian Masney <masneyb@gftp.org>
* src/text/gftp-text.c src/uicommon/gftpui.c - added file transfer
functions to the command line.
* src/uicommon/gftpui_transfer.c src/uicommon/gftpui.h src/text/textui.c
src/gtk/gtkui_transfer.c - added
gftpui_{start,update,finish}_current_file_in_transfer() functions
that will be called throughout the lifetime of a file transfer.
Also, gftpui_start_transfer() that will be called whenever a file
transfer is created
* src/uicommon/gftpui.h src/uicommon/gftpui.c src/gtk/gftp-gtk.c
src/gtk/transfer.c - added other_uidata and other_request arguments
to all of the command line functions
* lib/protocols.c lib/gftp.h - set the filespec argument to
gftp_get_next_file to be a constant
* lib/gftp.h - added tot_file_trans variable to gftp_transfer struct
author | masneyb |
---|---|
date | Sat, 24 Jan 2004 11:45:11 +0000 |
parents | d207b8241e96 |
children | 05ee37a5558b |
comparison
equal
deleted
inserted
replaced
376:6b25e7a2ff20 | 377:14da115b149b |
---|---|
48 | 48 |
49 typedef struct _gftpui_common_methods | 49 typedef struct _gftpui_common_methods |
50 { | 50 { |
51 char *command; | 51 char *command; |
52 int minlen; | 52 int minlen; |
53 int (*func)(void *uidata, gftp_request * request, const char *command); | 53 int (*func)(void *uidata, gftp_request * request, |
54 void *other_uidata, gftp_request * other_request, | |
55 const char *command); | |
54 gftpui_common_request_type reqtype; | 56 gftpui_common_request_type reqtype; |
55 char *cmd_description; | 57 char *cmd_description; |
56 int (*subhelp_func) (const char *topic); | 58 int (*subhelp_func) (const char *topic); |
57 } gftpui_common_methods; | 59 } gftpui_common_methods; |
58 | 60 |
100 gftp_request * remreq, | 102 gftp_request * remreq, |
101 const char *command ); | 103 const char *command ); |
102 | 104 |
103 int gftpui_common_cmd_open ( void *uidata, | 105 int gftpui_common_cmd_open ( void *uidata, |
104 gftp_request * request, | 106 gftp_request * request, |
107 void *other_uidata, | |
108 gftp_request * other_request, | |
105 const char *command ); | 109 const char *command ); |
106 | 110 |
107 gftp_transfer * gftpui_common_add_file_transfer ( gftp_request * fromreq, | 111 gftp_transfer * gftpui_common_add_file_transfer ( gftp_request * fromreq, |
108 gftp_request * toreq, | 112 gftp_request * toreq, |
109 void *fromuidata, | 113 void *fromuidata, |
153 GList * curfle, | 157 GList * curfle, |
154 char *filepos ); | 158 char *filepos ); |
155 | 159 |
156 void gftpui_ask_transfer ( gftp_transfer * tdata ); | 160 void gftpui_ask_transfer ( gftp_transfer * tdata ); |
157 | 161 |
162 void gftpui_start_current_file_in_transfer ( gftp_transfer * tdata ); | |
163 | |
164 void gftpui_update_current_file_in_transfer ( gftp_transfer * tdata ); | |
165 | |
166 void gftpui_finish_current_file_in_transfer ( gftp_transfer * tdata ); | |
167 | |
168 void gftpui_start_transfer ( gftp_transfer * tdata ); | |
169 | |
158 #endif | 170 #endif |