Mercurial > gftp.yaz
comparison lib/gftp.h @ 341:eedc2c5727fa
2003-12-28 Brian Masney <masneyb@gftp.org>
**** NOTE: this commit breaks a lot of functionality in gftp. I ****
**** still have more work to do on this. Please don't email me ****
**** saying that the CVS code is broken. ****
* lib/bookmark.c lib/gftp.h lib/local.c lib/options.h lib/rfc2068.c
lib/rfc959.c lib/sshv2.c - moved the use_threads option from the
request structure over to the protocol declaration in options.h.
* lib/options.h src/gtk/gftp-gtk.c - added cmd_in_gui option. When this
option is enabled, a new toolbar will be shown in the GTK+ port that
will allow you to control the GUI by entering manual commands.
* src/Makefile.am - added uicommon directory
* src/gtk/Makefile.am src/text/Makefile.am - link in the uicommon
library.
* src/uicommon/* src/text/gftp-text.c - moved most of the functionality
of the text port over to the uicommon directory. Made this code a little more generic so that the GTK+ port can have a text interface
associated with it.
* src/gtk/gtkui.c src/gtk/gftp-gtk.c src/gtk/mkdir_dialog.c
src/gtk/rename_dialog.c src/gtk/menu-items.c src/gtk/misc-gtk.c -
started to clean up the callback functions and make them more tightly
integrated with the uicommon code.
* src/gtk/bookmarks.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c
src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/misc-gtk.c
src/gtk/transfer.c -
s/refresh/gftpui_refresh/g
s/jmp_environment/gftpui_common_jmp_environment/g
s/request->use_threads/gftpui_common_use_threads (request)/g
* src/gtk/options_dialog.c (apply_changes) - whenever the options are
saved, check to see if the command entry needs to be shown or hidden.
author | masneyb |
---|---|
date | Sun, 28 Dec 2003 16:02:07 +0000 |
parents | 0f34108f27b7 |
children | ae7f8b9bd2e4 |
comparison
equal
deleted
inserted
replaced
340:c45fdcb87667 | 341:eedc2c5727fa |
---|---|
147 #define GFTP_DIRTYPE_DOS 5 | 147 #define GFTP_DIRTYPE_DOS 5 |
148 #define GFTP_DIRTYPE_VMS 6 | 148 #define GFTP_DIRTYPE_VMS 6 |
149 #define GFTP_DIRTYPE_OTHER 7 | 149 #define GFTP_DIRTYPE_OTHER 7 |
150 | 150 |
151 /* Error types */ | 151 /* Error types */ |
152 #define GFTP_ERETRYABLE -1 | 152 #define GFTP_ERETRYABLE -1 /* Temporary failure. The GUI |
153 #define GFTP_EFATAL -2 | 153 should wait briefly */ |
154 #define GFTP_EFATAL -2 /* Fatal error */ | |
155 #define GFTP_ERETRYABLE_NO_WAIT -3 /* Temporary failure. The GUI | |
156 should not wait and should | |
157 reconnect */ | |
154 | 158 |
155 /* Some general settings */ | 159 /* Some general settings */ |
156 #define BASE_CONF_DIR "~/.gftp" | 160 #define BASE_CONF_DIR "~/.gftp" |
157 #define CONFIG_FILE BASE_CONF_DIR "/gftprc" | 161 #define CONFIG_FILE BASE_CONF_DIR "/gftprc" |
158 #define BOOKMARKS_FILE BASE_CONF_DIR "/bookmarks" | 162 #define BOOKMARKS_FILE BASE_CONF_DIR "/bookmarks" |
343 use_proxy : 1, | 347 use_proxy : 1, |
344 always_connected : 1, | 348 always_connected : 1, |
345 need_hostport : 1, | 349 need_hostport : 1, |
346 need_userpass : 1, | 350 need_userpass : 1, |
347 use_cache : 1, /* Enable or disable the cache */ | 351 use_cache : 1, /* Enable or disable the cache */ |
348 use_threads : 1, /* Whether we need to spawn a thread | |
349 for this protocol */ | |
350 cached : 1, /* Is this directory listing cached? */ | 352 cached : 1, /* Is this directory listing cached? */ |
351 cancel : 1, /* If a signal is received, should | 353 cancel : 1, /* If a signal is received, should |
352 we cancel this operation */ | 354 we cancel this operation */ |
353 stopable : 1; | 355 stopable : 1; |
354 | 356 |
501 { | 503 { |
502 char *name; /* Description of protocol */ | 504 char *name; /* Description of protocol */ |
503 int (*init) (gftp_request * request); /* Init function */ | 505 int (*init) (gftp_request * request); /* Init function */ |
504 void (*register_options) (void); /* Protocol options */ | 506 void (*register_options) (void); /* Protocol options */ |
505 char *url_prefix; /* URL Prefix */ | 507 char *url_prefix; /* URL Prefix */ |
506 int shown; /* Whether this protocol is | 508 unsigned int shown : 1, /* Whether this protocol is |
507 shown or not to the user in | 509 shown or not to the user in |
508 the protocol dropdown box */ | 510 the protocol dropdown box */ |
511 use_threads : 1; /* Whether or not operations in | |
512 this protocol should use | |
513 threads */ | |
509 } supported_gftp_protocols; | 514 } supported_gftp_protocols; |
510 | 515 |
511 | 516 |
512 typedef struct gftp_bookmarks_tag gftp_bookmarks_var; | 517 typedef struct gftp_bookmarks_tag gftp_bookmarks_var; |
513 | 518 |