Mercurial > gftp.yaz
diff src/uicommon/gftpui.h @ 374:d207b8241e96
2003-1-21 Brian Masney <masneyb@gftp.org>
* lib/config_file.c lib/gftp.h - set the character string arguments to
const for the following functions: gftp_lookup_global_option(),
gftp_lookup_request_option(), gftp_lookup_bookmark_option(),
gftp_set_global_option(), gftp_set_request_option(),
gftp_set_bookmark_option()
* lib/misc.c lib/gftp.h - set the character string arguments to const
for the function gftp_match_filespec()
* src/gtk/gftp-gtk.c src/gtk/menu-items.c src/uicommon/gftpui.c - moved
more UI independant parts to the uicommon directory. Moved some GUI
specific functionality into gftp-gtk.c
* src/text/gftp-text.c src/gtk/gftp-gtk.c src/uicommon/gftpui.c - pass
the local/remote uidata/request structures to process_command(). Removed
old function gftpui_common_init(). Added new gftpui_common_init() that
sets up common functionality for a port.
* src/gtk/gtkui.c src/gtk/gtkui_transfer.c - moved
gftpui_add_file_to_transfer() to gtkui_transfer.c
* src/gtk/gtkui_transfer.c - cleaned up these functions some and made
them more modular
* src/uicommon/gftpui.c src/uicommon/gftpui.h - for all of the command
line functions, make the command argument a constant
author | masneyb |
---|---|
date | Wed, 21 Jan 2004 23:35:40 +0000 |
parents | d5409bf03ff1 |
children | 14da115b149b |
line wrap: on
line diff
--- a/src/uicommon/gftpui.h Wed Jan 21 16:46:01 2004 +0000 +++ b/src/uicommon/gftpui.h Wed Jan 21 23:35:40 2004 +0000 @@ -50,10 +50,10 @@ { char *command; int minlen; - int (*func)(void *uidata, gftp_request * request, char *command); + int (*func)(void *uidata, gftp_request * request, const char *command); gftpui_common_request_type reqtype; char *cmd_description; - int (*subhelp_func) (char *topic); + int (*subhelp_func) (const char *topic); } gftpui_common_methods; typedef struct _gftpui_common_curtrans_data @@ -80,27 +80,29 @@ extern volatile int gftpui_common_use_jmp_environment; extern gftpui_common_methods gftpui_common_commands[]; extern GStaticMutex gftpui_common_transfer_mutex; +extern volatile sig_atomic_t gftpui_common_child_process_done; /* gftpui.c */ int gftpui_run_callback_function ( gftpui_callback_data * cdata ); int gftpui_common_run_callback_function ( gftpui_callback_data * cdata ); -RETSIGTYPE gftpui_common_signal_handler ( int signo ); +void gftpui_common_init ( int *argc, + char ***argv, + gftp_logging_func logfunc ); void gftpui_common_about ( gftp_logging_func logging_function, gpointer logdata ); -int gftpui_common_init ( void *locui, +int gftpui_common_process_command ( void *locui, gftp_request * locreq, void *remui, - gftp_request * remreq ); - -int gftpui_common_process_command ( const char *command ); + gftp_request * remreq, + const char *command ); int gftpui_common_cmd_open ( void *uidata, gftp_request * request, - char *command ); + const char *command ); gftp_transfer * gftpui_common_add_file_transfer ( gftp_request * fromreq, gftp_request * toreq,